Last change
on this file since 788 was
768,
checked in by djay, 8 years ago
|
Fix location of the libfcgi.
|
File size:
790 bytes
|
Rev | Line | |
---|
[78] | 1 | OS:=$(shell uname -s) |
---|
[346] | 2 | CPU:=$(shell uname -m) |
---|
[78] | 3 | ifeq ($(OS),Darwin) |
---|
[308] | 4 | MACOS_CFLAGS=-arch x86_64 |
---|
[78] | 5 | LIBS= -L./ -lcgic /usr/lib/libfcgi.dylib |
---|
| 6 | else |
---|
| 7 | LIBS= -L./ -lcgic /usr/lib/libfcgi.a |
---|
| 8 | endif |
---|
| 9 | CFLAGS=-g -Wall ${MACOS_CFLAGS} |
---|
[1] | 10 | CC=gcc |
---|
| 11 | AR=ar |
---|
| 12 | RANLIB=ranlib |
---|
| 13 | |
---|
| 14 | all: libcgic.a cgictest.cgi capture |
---|
| 15 | |
---|
| 16 | install: libcgic.a |
---|
[346] | 17 | mkdir -p ../../dist/lib |
---|
[1] | 18 | cp libcgic.a ../../dist/lib |
---|
[346] | 19 | cp cgic.h ../../dist/include |
---|
| 20 | @echo libcgic.a is in ../../dist/lib/ and cgic.h is in ../../dist/include/ |
---|
[1] | 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.