source: trunk/thirds/cgic206/Makefile @ 78

Last change on this file since 78 was 78, checked in by djay, 10 years ago

Remove request length display and fix Makefile for MacOS X.

File size: 764 bytes
Line 
1OS:=$(shell uname -s)
2ifeq ($(OS),Darwin)
3        MACOS_CFLAGS=-arch i386 -arch ppc -arch x86_64
4        LIBS= -L./ -lcgic /usr/lib/libfcgi.dylib
5else
6        LIBS= -L./ -lcgic /usr/lib/libfcgi.a
7endif
8CFLAGS=-g -Wall ${MACOS_CFLAGS}
9CC=gcc
10AR=ar
11RANLIB=ranlib
12
13all: libcgic.a cgictest.cgi capture
14
15install: libcgic.a
16        cp libcgic.a  ../../dist/lib
17        cp cgic.h  ../../dist//include
18        @echo libcgic.a is in  ../../dist/lib and cgic.h is in  ../../dist//include.
19
20libcgic.a: cgic.o cgic.h
21        rm -f libcgic.a
22        $(AR) rc libcgic.a cgic.o
23        $(RANLIB) libcgic.a
24
25#mingw32 and cygwin users: replace .cgi with .exe
26
27cgictest.cgi: cgictest.o libcgic.a
28        gcc cgictest.o -o cgictest.cgi ${LIBS}
29
30capture: capture.o libcgic.a
31        gcc capture.o -o capture ${LIBS}
32
33clean:
34        rm -f *.o *.a cgictest.cgi capture
35
Note: See TracBrowser for help on using the repository browser.

Search

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png