mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-01 22:05:08 +00:00
7147035ad6
An ANSI C library for CGI programming. PR: 12835 Submitted by: Andrey Zakhvatov <andy@icc.surw.chel.su>
30 lines
719 B
Plaintext
30 lines
719 B
Plaintext
--- 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
|