Last change
on this file since 935 was
817,
checked in by djay, 8 years ago
|
Forward headers defined in the security section in the main.cfg #139.
|
File size:
817 bytes
|
Line | |
---|
1 | OS:=$(shell uname -s) |
---|
2 | CPU:=$(shell uname -m) |
---|
3 | ifeq ($(OS),Darwin) |
---|
4 | MACOS_CFLAGS=-arch x86_64 |
---|
5 | LIBS= -L./ -lcgic /usr/local/lib/libfcgi.dylib |
---|
6 | else |
---|
7 | LIBS= -L./ -lcgic /usr/lib/libfcgi.a |
---|
8 | endif |
---|
9 | CFLAGS=-I/usr/local/include -g -Wall ${MACOS_CFLAGS} |
---|
10 | CC=gcc |
---|
11 | AR=ar |
---|
12 | RANLIB=ranlib |
---|
13 | |
---|
14 | all: libcgic.a cgictest.cgi capture |
---|
15 | |
---|
16 | install: libcgic.a |
---|
17 | mkdir -p ../../dist/lib |
---|
18 | cp libcgic.a ../../dist/lib |
---|
19 | cp cgic.h ../../dist/include |
---|
20 | @echo libcgic.a is in ../../dist/lib/ and cgic.h is in ../../dist/include/ |
---|
21 | |
---|
22 | libcgic.a: cgic.o cgic.h |
---|
23 | rm -f libcgic.a |
---|
24 | $(AR) rc libcgic.a cgic.o |
---|
25 | $(RANLIB) libcgic.a |
---|
26 | |
---|
27 | #mingw32 and cygwin users: replace .cgi with .exe |
---|
28 | |
---|
29 | cgictest.cgi: cgictest.o libcgic.a |
---|
30 | gcc cgictest.o -o cgictest.cgi ${LIBS} |
---|
31 | |
---|
32 | capture: capture.o libcgic.a |
---|
33 | gcc capture.o -o capture ${LIBS} |
---|
34 | |
---|
35 | clean: |
---|
36 | rm -f *.o *.a cgictest.cgi capture |
---|
37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.