--- Makefile Fri Feb 16 00:20:09 1996 +++ /home/andy/tmp/wrk/Makefile Tue Jul 27 15:40:18 1999 @@ -3,16 +3,15 @@ #or the system() function, respectively. Non-unix systems #will also definitely have different linker syntax. -CFLAGS= -CC=gcc +#CFLAGS= +#CC=gcc AR=ar LIBS=-L./ -lcgic all: libcgic.a cgictest capture -libcgic.a: cgic.o cgic.h - rm -f libcgic.a - $(AR) rc libcgic.a cgic.o +libcgic.so.1: cgic.o + $(CC) $(CFLAGS) -shared -Wl,-soname,libcgic.so.1 -o libcgic.so.1 cgic.o cgictest: cgictest.o libcgic.a gcc cgictest.o -o cgictest ${LIBS} @@ -20,3 +19,5 @@ capture: capture.o libcgic.a gcc capture.o -o capture ${LIBS} +cgic.o: cgic.c cgic.h + $(CC) $(CFLAGS) -fPIC -o cgic.o -c -s cgic.c