X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=Makefile;h=886af19bd7bf5c397740954f444252cb99e5482f;hb=4bce48358fe524f83e0b603f9eb8633d94b47064;hp=1ec1f84a9e0f3abf98ba1ce75152de241d23237f;hpb=4246c3a62ad98abc131ca46bedc35a881d779ba0;p=oss%2Ftclsyslog.git diff --git a/Makefile b/Makefile index 1ec1f84..886af19 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION=1.1 +VERSION=2.1 # 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 @@ -42,4 +43,6 @@ install: ${INSTALL} -m 755 -c libsyslog.so.${VERSION} ${LIBDIR}/syslog ${INSTALL} -m 644 -c pkgIndex.tcl ${LIBDIR}/syslog ${INSTALL} -m 644 -c syslog.n ${MANDIR}/syslog.${MANSUFFIX} - +tar: + + tar czfC ../tclsyslog-${VERSION}.tar.gz .. tclsyslog --exclude CVS