source: trunk/thirds/cgic206/Makefile @ 965

Last change on this file since 965 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
RevLine 
[78]1OS:=$(shell uname -s)
[346]2CPU:=$(shell uname -m)
[78]3ifeq ($(OS),Darwin)
[308]4        MACOS_CFLAGS=-arch x86_64
[817]5        LIBS= -L./ -lcgic /usr/local/lib/libfcgi.dylib
[78]6else
7        LIBS= -L./ -lcgic /usr/lib/libfcgi.a
8endif
[817]9CFLAGS=-I/usr/local/include -g -Wall ${MACOS_CFLAGS}
[1]10CC=gcc
11AR=ar
12RANLIB=ranlib
13
14all: libcgic.a cgictest.cgi capture
15
16install: 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
22libcgic.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
29cgictest.cgi: cgictest.o libcgic.a
30        gcc cgictest.o -o cgictest.cgi ${LIBS}
31
32capture: capture.o libcgic.a
33        gcc capture.o -o capture ${LIBS}
34
35clean:
36        rm -f *.o *.a cgictest.cgi capture
37
Note: See TracBrowser for help on using the repository browser.

Search

Context Navigation

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