source: trunk/thirds/cgic206/Makefile @ 415

Last change on this file since 415 was 346, checked in by neteler, 13 years ago

fix compilation on 64bit linux

File size: 863 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
7ifeq ($(CPU),x86_64)
8        LIBS= -L./ -lcgic /usr/lib64/libfcgi.so
9else
10        LIBS= -L./ -lcgic /usr/lib/libfcgi.a
11endif
12endif
13CFLAGS=-g -Wall ${MACOS_CFLAGS}
14CC=gcc
15AR=ar
16RANLIB=ranlib
17
18all: libcgic.a cgictest.cgi capture
19
20install: libcgic.a
21        mkdir -p ../../dist/lib
22        cp libcgic.a  ../../dist/lib
23        cp cgic.h  ../../dist/include
24        @echo libcgic.a is in  ../../dist/lib/ and cgic.h is in  ../../dist/include/
25
26libcgic.a: cgic.o cgic.h
27        rm -f libcgic.a
28        $(AR) rc libcgic.a cgic.o
29        $(RANLIB) libcgic.a
30
31#mingw32 and cygwin users: replace .cgi with .exe
32
33cgictest.cgi: cgictest.o libcgic.a
34        gcc cgictest.o -o cgictest.cgi ${LIBS}
35
36capture: capture.o libcgic.a
37        gcc capture.o -o capture ${LIBS}
38
39clean:
40        rm -f *.o *.a cgictest.cgi capture
41
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