1 | |
---|
2 | CC=cl $(CFLAGS) |
---|
3 | CPP=cl /TP $(CFLAGS) |
---|
4 | |
---|
5 | !IF DEFINED(MS_DIR) |
---|
6 | MS_BASE=$(MS_DIR) |
---|
7 | !INCLUDE $(MS_DIR)\nmake.opt |
---|
8 | !ENDIF |
---|
9 | |
---|
10 | !IFDEF JS_DIR |
---|
11 | JS_CFLAGS=-DXP_WIN -DUSE_JS -I$(JS_DIR) |
---|
12 | JS_LDFLAGS=$(JS_DIR)/mozjs185-1.0.lib |
---|
13 | JS_FILE=service_internal_js.obj |
---|
14 | !ENDIF |
---|
15 | |
---|
16 | !IFDEF MS_DIR |
---|
17 | MS_CFLAGS=-DUSE_MS -I$(MS_DIR) |
---|
18 | MS_LDFLAGS=$(MS_DIR)/mapserver_i.lib |
---|
19 | MS_FILE=service_internal_ms.obj |
---|
20 | !ENDIF |
---|
21 | |
---|
22 | !IFDEF JDK_DIR |
---|
23 | JAVA_CFLAGS=-DJAVA7 -DUSE_JAVA -I"$(JDK_DIR)\include" -I"$(JDK_DIR)\include\win32" |
---|
24 | JAVA_LDFLAGS="$(JDK_DIR)/lib/jvm.lib" |
---|
25 | JAVA_FILE=service_internal_java.obj |
---|
26 | !ENDIF |
---|
27 | |
---|
28 | !IFDEF PY_DIR |
---|
29 | PY_CFLAGS=-DUSE_PYTHON -I$(PY_DIR)\Include -I$(PY_DIR)\PC |
---|
30 | PY_LDFLAGS=$(PY_LIBRARY) |
---|
31 | PY_FILE=service_internal_python.obj |
---|
32 | !ENDIF |
---|
33 | |
---|
34 | !IFDEF RUBY_DIR |
---|
35 | ################################################################# |
---|
36 | #RUBY 1.8.7 |
---|
37 | ZRUBY_VERSION=1 |
---|
38 | RUBY_CFLAGS=-DZRUBY_VERSION=1 -DUSE_RUBY -I$(RUBY_DIR) |
---|
39 | RUBY_LDFLAGS="$(RUBY_DIR)/msvcr100-ruby18.lib" |
---|
40 | ################################################################# |
---|
41 | #RUBY 1.9.3 |
---|
42 | #ZRUBY_VERSION=2 |
---|
43 | #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 |
---|
44 | #RUBY_LDFLAGS="$(RUBY_DIR)/lib/msvcr100-ruby191.lib" |
---|
45 | #RUBY 2.1.0 |
---|
46 | #ZRUBY_VERSION=2 |
---|
47 | #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 |
---|
48 | #RUBY_LDFLAGS="$(RUBY_DIR)/lib/msvcr100-ruby210.lib" |
---|
49 | ################################################################# |
---|
50 | RUBY_FILE=service_internal_ruby.obj |
---|
51 | !IFDEF MS_DIR |
---|
52 | RUBY_CFLAGS=$(RUBY_CFLAGS) -DHAVE_ROUND |
---|
53 | !ENDIF |
---|
54 | !ENDIF |
---|
55 | |
---|
56 | !IFNDEF ZOOK_DIR |
---|
57 | ZOOK_DIR=. |
---|
58 | !ENDIF |
---|
59 | |
---|
60 | TROOT=$(ZOOK_DIR) |
---|
61 | TPATH=$(ZOOK_DIR)\..\..\..\tools |
---|
62 | LIBINTL_CPATH=$(ZOOK_DIR)\..\..\..\ |
---|
63 | PYTHON_CPATH=$(PY_DIR) |
---|
64 | |
---|
65 | CFLAGS= $(MS_DEFS) $(INCLUDES) $(CFLAGS1) /nologo /MD /W3 /EHsc /Ox /D_CRT_SECURE_NO_WARNINGS /DWIN32 $(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) -DLINUX_FREE_ISSUE #-DDEBUG #-DDEBUG_SERVICE_CONF |
---|
66 | |
---|
67 | LDFLAGSCGI=$(TROOT)/../../thirds/cgic206/libcgic.lib |
---|
68 | 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) /machine:i386 |
---|