X-Git-Url: https://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=Makefile;fp=Makefile;h=fc32a3cb0fb7613cce99f32f716939018f5d2e9b;hb=f09d66f4481f1da27098409da3c43e22b9186720;hp=1ec1f84a9e0f3abf98ba1ce75152de241d23237f;hpb=4246c3a62ad98abc131ca46bedc35a881d779ba0;p=oss%2Ftclsyslog.git diff --git a/Makefile b/Makefile index 1ec1f84..fc32a3c 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION=1.1 +VERSION=2.0 # This is root of installation tree PREFIX=/usr/local CC=gcc @@ -6,10 +6,11 @@ CC=gcc # Don't forget to change if your CC is not gcc # CFLAGS=-Wall -fPIC -LDFLAGS=-shared -# No need to link with libtcl8.0 on ELF system. Your setup might be -# different -LOADLIBES= +LDFLAGS=-shared -L/usr/local/lib +# Have to set it manually becouse otherwise gcc would pick includes from +# 8.0 on my system +INCLUDES=-I/usr/local/include +LOADLIBES=-ltclstub8.2 # This is where package would be installed LIBDIR=${PREFIX}/lib # On my Debian system this would be @@ -28,7 +29,7 @@ INSTALL=/usr/bin/install all: libsyslog.so.${VERSION} pkgIndex.tcl libsyslog.so.${VERSION}: tclsyslog.o - gcc ${LDFLAGS} -o libsyslog.so.${VERSION} -DVERSION=\"${VERSION}\" tclsyslog.o ${LOADLIBES} + gcc ${LDFLAGS} -o libsyslog.so.${VERSION} -DUSE_TCL_STUBS -DVERSION=\"${VERSION}\" tclsyslog.o ${LOADLIBES} tclsyslog.o: tclsyslog.c ${CC} ${CFLAGS} ${INCLUDES} -DVERSION=\"${VERSION}\" -c tclsyslog.c