source: branches/branch-1.6/thirds/cgic206/Makefile @ 960

Last change on this file since 960 was 768, checked in by djay, 8 years ago

Fix location of the libfcgi.

File size: 790 bytes
Line 
1OS:=$(shell uname -s)
2CPU:=$(shell uname -m)
3ifeq ($(OS),Darwin)
4        MACOS_CFLAGS=-arch x86_64
5        LIBS= -L./ -lcgic /usr/lib/libfcgi.dylib
6else
7        LIBS= -L./ -lcgic /usr/lib/libfcgi.a
8endif
9CFLAGS=-g -Wall ${MACOS_CFLAGS}
10CC=gcc
11AR=ar
12RANLIB=ranlib
13
14all: libcgic.a cgictest.cgi capture
15
16install: 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
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

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