1 | PROGRAMNAME=zoo_loader.cgi |
---|
2 | LIBZOO_SERVICE=libzoo_service.dll |
---|
3 | |
---|
4 | CC=cl $(CFLAGS) |
---|
5 | CPP=cl /TP $(CFLAGS) |
---|
6 | |
---|
7 | #PY_DIR=C:/"Program Files (x86)"/Python3.3 |
---|
8 | #PY_LIB=$(PY_DIR)/libs/python33.lib |
---|
9 | |
---|
10 | #PHP_DIR=C:\php-sdk\phpdev\vc12\x86\php-5.5.10-src |
---|
11 | #PHP_LIB=$(PHP_DIR)\Release_TS\php5embed.lib |
---|
12 | |
---|
13 | #!IF DEFINED(MS_DIR) |
---|
14 | #MS_BASE=$(MS_DIR) |
---|
15 | #!INCLUDE $(MS_DIR)\nmake.opt |
---|
16 | #!ENDIF |
---|
17 | |
---|
18 | !IFDEF JS_DIR |
---|
19 | JS_CFLAGS=-DXP_WIN -DUSE_JS -I$(JS_DIR) -I$(JS_DIR)/dist/include |
---|
20 | JS_LDFLAGS=$(JS_DIR)/mozjs185-1.0.lib |
---|
21 | JS_FILE=service_internal_js.obj |
---|
22 | !ENDIF |
---|
23 | |
---|
24 | !IFDEF JS_CFG |
---|
25 | #!INCLUDE $(JS_CFG) |
---|
26 | #JS_CFLAGS=-DXP_WIN -DUSE_JS $(JS_CONFIG_CFLAGS) |
---|
27 | #JS_LDFLAGS=$(JS_CONFIG_LDFLAGS) |
---|
28 | JS_CFLAGS=-DXP_WIN -DUSE_JS -include c:/mozilla-build/msys/local/include/mozjs-24/js/RequiredDefines.h -Ic:/mozilla-build/msys/local/include/mozjs-24 -IC:/mozilla-build/msys/local/include |
---|
29 | JS_LDFLAGS=c:/mozilla-build/msys/local/lib/mozjs-24.lib kernel32.lib user32.lib gdi32.lib winmm.lib wsock32.lib advapi32.lib psapi.lib |
---|
30 | JS_FILE=service_internal_js.obj |
---|
31 | !ENDIF |
---|
32 | |
---|
33 | !IFDEF MS_DIR |
---|
34 | MS_CFLAGS=-DUSE_MS -DHAVE_STRCASECMP -DHAVE_STRNCASECMP -I$(MS_DIR)/include |
---|
35 | MS_LDFLAGS=$(MS_DIR)/lib/mapserver_i.lib |
---|
36 | MS_FILE=service_internal_ms.obj |
---|
37 | !ENDIF |
---|
38 | |
---|
39 | !IFDEF JDK_DIR |
---|
40 | JAVA_CFLAGS=-DJAVA7 -DUSE_JAVA -I"$(JDK_DIR)\include" -I"$(JDK_DIR)\include\win32" |
---|
41 | JAVA_LDFLAGS="$(JDK_DIR)/lib/jvm.lib" |
---|
42 | JAVA_FILE=service_internal_java.obj |
---|
43 | !ENDIF |
---|
44 | |
---|
45 | !IFDEF PY_DIR |
---|
46 | PY_CFLAGS=-DUSE_PYTHON -I$(PY_DIR)\Include -I$(PY_DIR)\PC |
---|
47 | PY_LDFLAGS=$(PY_LIBRARY) |
---|
48 | PY_FILE=service_internal_python.obj |
---|
49 | !ENDIF |
---|
50 | |
---|
51 | !IFDEF PHP_DIR |
---|
52 | PHP_LIB=$(PHP_DIR)\Release_TS\php5embed.lib |
---|
53 | PHP_CURL_LIB=$(PHP_DIR)\Release_TS\php_curl.lib |
---|
54 | PHP_SRC=$(PHP_DIR) |
---|
55 | PHP_LDFLAGS=$(PHP_LIB) $(PHP_CURL_LIB) |
---|
56 | PHP_FILE=service_internal_php.obj |
---|
57 | PHP_CFLAGS=-I$(PHP_SRC) -I$(PHP_SRC)\Zend -I$(PHP_SRC)\TSRM /DPHP_WIN32 /DZEND_WIN32 /DWIN32 /D_USE_32BIT_TIME_T /DZTS /DUSE_PHP |
---|
58 | !ENDIF |
---|
59 | |
---|
60 | !IFDEF RUBY_DIR |
---|
61 | ################################################################# |
---|
62 | #RUBY 1.8.7 |
---|
63 | ZRUBY_VERSION=1 |
---|
64 | RUBY_CFLAGS=-DZRUBY_VERSION=1 -DUSE_RUBY -I$(RUBY_DIR) |
---|
65 | RUBY_LDFLAGS="$(RUBY_DIR)/msvcr100-ruby18.lib" |
---|
66 | ################################################################# |
---|
67 | #RUBY 1.9.3 |
---|
68 | #ZRUBY_VERSION=2 |
---|
69 | #RUBY_CFLAGS=-DZRUBY_VERSION=2 -DUSE_RUBY -I$(RUBY_DIR)/include/ruby-1.9.1/ -I$(RUBY_DIR)/include/ruby-1.9.1/i386-mswin32_100 |
---|
70 | #RUBY_LDFLAGS="$(RUBY_DIR)/lib/msvcr100-ruby191.lib" |
---|
71 | #RUBY 2.1.0 |
---|
72 | #ZRUBY_VERSION=2 |
---|
73 | #RUBY_CFLAGS=-DZRUBY_VERSION=2 -DUSE_RUBY -I$(RUBY_DIR)/include/ruby-2.1.0/ -I$(RUBY_DIR)/include/ruby-2.1.0/i386-mswin32_100 |
---|
74 | #RUBY_LDFLAGS="$(RUBY_DIR)/lib/msvcr100-ruby210.lib" |
---|
75 | ################################################################# |
---|
76 | RUBY_FILE=service_internal_ruby.obj |
---|
77 | !IFDEF MS_DIR |
---|
78 | RUBY_CFLAGS=$(RUBY_CFLAGS) -DHAVE_ROUND |
---|
79 | !ENDIF |
---|
80 | !ENDIF |
---|
81 | |
---|
82 | !IFNDEF ZOOK_DIR |
---|
83 | ZOOK_DIR=. |
---|
84 | !ENDIF |
---|
85 | |
---|
86 | TROOT=$(ZOOK_DIR) |
---|
87 | TPATH=$(ZOOK_DIR)\..\..\..\tools |
---|
88 | LIBINTL_CPATH=$(ZOOK_DIR)\..\..\..\ |
---|
89 | PYTHON_CPATH=$(PY_DIR) |
---|
90 | |
---|
91 | !IFDEF DB |
---|
92 | DB_FLAGS=-DRELY_ON_DB |
---|
93 | !ENDIF |
---|
94 | |
---|
95 | CFLAGS= $(DB_FLAGS) $(MS_DEFS) $(INCLUDES) $(CFLAGS1) /nologo /MD /W3 /EHsc /Ox /D_CRT_SECURE_NO_WARNINGS /DWIN32 /DPROGRAMNAME=\"$(PROGRAMNAME)\" $(CJFLAGS) -I$(ZOOK_DIR) $(RUBY_CFLAGS) -I./ $(JAVA_CFLAGS) $(MS_CFLAGS) -I$(TROOT)\..\..\thirds\dirent-win32 -I$(INTL_DIR) -I$(CURL_DIR)\include -I$(XML2_DIR)\include -I$(GDAL_DIR)\port $(JS_CFLAGS) -I$(GDAL_DIR)\ogr -I$(GDAL_DIR)\gcore -I$(GD_DIR) -I$(ICONV_DIR) -I$(TROOT)\..\..\thirds\include -I$(TROOT)\..\..\thirds\cgic206 -I$(PYTHON_CPATH)\include -I$(SSL_DIR)/inc32 -I$(FCGI_DIR)\include $(PY_CFLAGS) $(PHP_CFLAGS) -DLINUX_FREE_ISSUE #-DDEBUG #-DDEBUG_SERVICE_CONF |
---|
96 | |
---|
97 | LDFLAGSCGI=$(TROOT)/../../thirds/cgic206/libcgic.lib |
---|
98 | LDFLAGS=$(FCGI_DIR)/libfcgi/Release/libfcgi.lib $(CURL_LIBRARY) $(PY_LDFLAGS) $(XML2_LIBRARY) $(SSL_DIR)/out32dll/libeay32.lib $(JAVA_LDFLAGS) $(SSL_DIR)/out32dll/ssleay32.lib $(MS_LDFLAGS) $(INTL_DIR)/intl.lib $(XML2_DIR)/win32/bin.msvc/libxml2.lib $(GDAL_DIR)/gdal_i.lib $(CURL_DIR)/lib/libcurl.lib $(JS_LDFLAGS) $(RUBY_LDFLAGS) $(PHP_LDFLAGS) /machine:i386 |
---|