source: branches/branch-1.2/thirds/cgic206/Makefile @ 328

Last change on this file since 328 was 301, checked in by djay, 13 years ago

Merge branch-1.2 r268:r296.

File size: 754 bytes
Line 
1OS:=$(shell uname -s)
2ifeq ($(OS),Darwin)
3        MACOS_CFLAGS=-arch $(shell uname -m)
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

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