1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-11 23:25:17 +00:00
freebsd-ports/www/cgic/files/patch-aa
Steve Price 7147035ad6 Add cgic version 1.06.
An ANSI C library for CGI programming.

PR:		12835
Submitted by:	Andrey Zakhvatov <andy@icc.surw.chel.su>
1999-12-29 09:25:49 +00:00

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