1 | OS:=$(shell uname -s) |
---|
2 | ifeq ($(OS),Darwin) |
---|
3 | MACOS_LD_FLAGS=-lintl |
---|
4 | MACOS_LD_NET_FLAGS=-framework SystemConfiguration -framework CoreFoundation |
---|
5 | MACOS_CFLAGS=-arch $(shell uname -m) |
---|
6 | endif |
---|
7 | |
---|
8 | CGI_DIR=@CGI_DIR@ |
---|
9 | |
---|
10 | YAML_CFLAGS=@YAML_CPPFLAGS@ |
---|
11 | YAML_LDFLAGS=@YAML_LDFLAGS@ |
---|
12 | YAML_FILE=@YAML_FILE@ |
---|
13 | YAML_FILE1=@YAML_FILE1@ |
---|
14 | |
---|
15 | GDAL_CFLAGS=@GDAL_CFLAGS@ |
---|
16 | GDAL_LIBS=@GDAL_LIBS@ |
---|
17 | |
---|
18 | XML2CFLAGS=@XML2_CPPFLAGS@ |
---|
19 | XML2LDFLAGS=@XML2_LDFLAGS@ |
---|
20 | |
---|
21 | XSLT_CFLAGS=@XSLT_CPPFLAGS@ |
---|
22 | XSLT_LDFLAGS=@XSLT_LDFLAGS@ |
---|
23 | |
---|
24 | GEOS_CFLAGS=@GEOS_CPPFLAGS@ |
---|
25 | GEOS_LDFLAGS=@GEOS_LDFLAGS@ |
---|
26 | |
---|
27 | CGAL_CFLAGS=@CGAL_CPPFLAGS@ |
---|
28 | CGAL_LDFLAGS=@CGAL_LDFLAGS@ |
---|
29 | |
---|
30 | PYTHONCFLAGS=@PYTHON_CPPFLAGS@ |
---|
31 | PYTHONLDFLAGS=@PYTHON_LDFLAGS@ |
---|
32 | PYTHON_ENABLED=@PYTHON_ENABLED@ |
---|
33 | PYTHON_FILE=@PYTHON_FILE@ |
---|
34 | |
---|
35 | RUBYCFLAGS=@RUBY_CPPFLAGS@ |
---|
36 | RUBYLDFLAGS=@RUBY_LDFLAGS@ |
---|
37 | RUBY_ENABLED=@RUBY_ENABLED@ |
---|
38 | RUBY_FILE=@RUBY_FILE@ |
---|
39 | |
---|
40 | JS_ENABLED=@JS_ENABLED@ |
---|
41 | JSCFLAGS=@JS_CPPFLAGS@ |
---|
42 | JSLDFLAGS=@JS_LDFLAGS@ |
---|
43 | JS_FILE=@JS_FILE@ |
---|
44 | ifeq ($(JS_ENABLED),-DUSE_JS) |
---|
45 | JS_LDFLAGS=${ZRPATH}/zoo-kernel/ulinet.o ${ZRPATH}/zoo-kernel/service_internal_js.o -lcurl |
---|
46 | endif |
---|
47 | |
---|
48 | MS_CFLAGS=@MS_CFLAGS@ |
---|
49 | MS_LDFLAGS=@MS_LIBS@ |
---|
50 | MS_FILE=@MS_FILE@ |
---|
51 | |
---|
52 | ZOO_CFLAGS=-I${ZRPATH}/../thirds/cgic206/ -I${ZRPATH}/zoo-kernel/ |
---|
53 | ZOO_LDFLAGS=-lcrypto |
---|
54 | |
---|
55 | JAVACFLAGS=@JAVA_CPPFLAGS@ |
---|
56 | JAVALDFLAGS=@JAVA_LDFLAGS@ |
---|
57 | JAVA_ENABLED=@JAVA_ENABLED@ |
---|
58 | JAVA_FILE=@JAVA_FILE@ |
---|
59 | |
---|
60 | PHPCFLAGS=@PHP_CPPFLAGS@ |
---|
61 | PHPLDFLAGS=@PHP_LDFLAGS@ |
---|
62 | PHP_ENABLED=@PHP_ENABLED@ |
---|
63 | PHP_FILE=@PHP_FILE@ |
---|
64 | |
---|
65 | |
---|
66 | PERLCFLAGS=@PERL_CPPFLAGS@ |
---|
67 | PERLLDFLAGS=@PERL_LDFLAGS@ |
---|
68 | PERL_ENABLED=@PERL_ENABLED@ |
---|
69 | PERL_FILE=@PERL_FILE@ |
---|
70 | |
---|
71 | OTBCFLAGS=@OTB_CPPFLAGS@ |
---|
72 | OTBLDFLAGS=@OTB_LDFLAGS@ |
---|
73 | OTB_ENABLED=@OTB_ENABLED@ |
---|
74 | OTB_FILE=@OTB_FILE@ |
---|
75 | |
---|
76 | SAGA_CFLAGS=@SAGA_CPPFLAGS@ |
---|
77 | SAGA_LDFLAGS=@SAGA_LDFLAGS@ |
---|
78 | SAGA_ENABLED=@SAGA_ENABLED@ |
---|
79 | SAGA_FILE=@SAGA_FILE@ |
---|
80 | |
---|
81 | CFLAGS=@DEB_DEF@ -fpic ${YAML_CFLAGS} ${MACOS_CFLAGS} ${MS_CFLAGS} -I../../thirds/cgic206 -I. -DLINUX_FREE_ISSUE #-DDEBUG #-DDEBUG_SERVICE_CONF |
---|
82 | LDFLAGS=-lcurl -L../../thirds/cgic206 -lcgic ${GDAL_LIBS} ${XML2LDFLAGS} ${PYTHONLDFLAGS} ${PERLLDFLAGS} ${PHPLDFLAGS} ${JAVALDFLAGS} ${JSLDFLAGS} -lfcgi -lcrypto ${MS_LDFLAGS} ${MACOS_LD_FLAGS} ${MACOS_LD_NET_FLAGS} ${YAML_LDFLAGS} ${OTBLDFLAGS} ${SAGA_LDFLAGS} |
---|
83 | |
---|