1 | ######################################################################## |
---|
2 | # nmake.opt - ZOO configuration for MSVC++ |
---|
3 | ######################################################################## |
---|
4 | # This VC++ configuration is used in building zoo_loader.cgi on Windows |
---|
5 | # |
---|
6 | # To use the makefile: |
---|
7 | # - Open a DOS prompt window |
---|
8 | # - Run the VCVARS32.BAT script to initialize the VC++ environment variables |
---|
9 | # - Start the build with: nmake /f makefile.vc |
---|
10 | |
---|
11 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
12 | # Source directory |
---|
13 | # ---------------------------------------------------------------------- |
---|
14 | # Set the following to point to the ZOO directory |
---|
15 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
16 | ZOO_BASE=D:\build\mapserver-buildkit-2008\zoo-project |
---|
17 | |
---|
18 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
19 | # Destination directory |
---|
20 | # ---------------------------------------------------------------------- |
---|
21 | # Set the following to where you want the output placed |
---|
22 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
23 | ZOO_BIN=$(ZOO_BASE)\..\bin |
---|
24 | |
---|
25 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
26 | # GNU TOOLS |
---|
27 | # ---------------------------------------------------------------------- |
---|
28 | # gnuwin32 tools flex.exe and bison.exe are required. You can download them |
---|
29 | # at: http://www.zoo-project.org/dl/tool-win32.zip |
---|
30 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
31 | TOOLS=$(ZOO_BASE)\..\gnuwin32-tools |
---|
32 | |
---|
33 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
34 | # LIBCGIC |
---|
35 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
36 | LIBCGIC_DIR=$(ZOO_BASE)\thirds\cgic206 |
---|
37 | LIBCGIC_LIB=$(LIBCGIC_DIR)\libcgic.lib |
---|
38 | |
---|
39 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
40 | # LIBINTL |
---|
41 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
42 | LIBINTL_DIR=$(ZOO_BASE)\..\libintl-0.11.5 |
---|
43 | LIBINTL_LIB=$(ZOO_BASE)\..\gettext-runtime-0.17-source\MSVC9\libintl_dll\Release\libintl.lib |
---|
44 | |
---|
45 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
46 | # PYTHON |
---|
47 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
48 | PYTHON_DIR=$(ZOO_BASE)\..\Python-2.6.2 |
---|
49 | PYTHON_LIB=$(PYTHON_DIR)\python26.lib |
---|
50 | |
---|
51 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
52 | # FastCGI |
---|
53 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
54 | FCGI_DIR=$(ZOO_BASE)\..\fcgi-2.4.0 |
---|
55 | FCGI_LIB=$(FCGI_DIR)\libfcgi\Release\libfcgi.lib |
---|
56 | |
---|
57 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
58 | # Curl |
---|
59 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
60 | CURL_DIR=$(ZOO_BASE)\..\curl-7.21.3 |
---|
61 | CURL_LIB=$(CURL_DIR)\lib\libcurl_imp.lib |
---|
62 | |
---|
63 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
64 | # libXML |
---|
65 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
66 | LIBXML_DIR=$(ZOO_BASE)\..\libxml2-2.7.7.win32 |
---|
67 | LIBXML_LIB=$(LIBXML_DIR)\lib\libxml2.lib |
---|
68 | |
---|
69 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
70 | # ICONV |
---|
71 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
72 | ICONV_DIR=$(ZOO_BASE)\..\libiconv-1.11.1 |
---|
73 | |
---|
74 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
75 | # GDAL |
---|
76 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
77 | GDAL_DIR=$(ZOO_BASE)\..\gdal_1_8_0 |
---|
78 | GDAL_LIB=$(GDAL_DIR)\gdal_i.lib |
---|
79 | |
---|
80 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
81 | # OpenSSL |
---|
82 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
83 | OPENSSL_DIR=$(ZOO_BASE)\..\openssl-1.0.0c\build |
---|
84 | |
---|
85 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
86 | # GEOS |
---|
87 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
88 | GEOS_DIR=$(ZOO_BASE)\..\geos-3.2.2 |
---|
89 | GEOS_LIB=$(GEOS_DIR)\source\geos_c_i.lib |
---|
90 | |
---|
91 | ######################################################################## |
---|
92 | # Nothing after this should need to be configured. |
---|
93 | ######################################################################## |
---|
94 | |
---|
95 | CC=cl $(CFLAGS) |
---|
96 | CPP=cl /TP $(CFLAGS) |
---|
97 | |
---|
98 | CFLAGS=-DUSE_PYTHON /EHa /nologo /MT /W3 /EHsc /O2 /D_CRT_SECURE_NO_WARNINGS /DWIN32 $(CJFLAGS) -I./ -I..\thirds\dirent-win32 -I..\thirds\include -I$(LIBCGIC_DIR) -I$(PYTHON_DIR)\include -I$(LIBINTL_DIR)\include -I$(TOOLS)\include -I$(FCGI_DIR)\include -I$(OPENSSL_DIR)\include -I$(LIBXML_DIR)\include -I$(ICONV_DIR)\include -I$(CURL_DIR)\include -DLINUX_FREE_ISSUE #-DDEBUG #-DDEBUG_SERVICE_CONF |
---|
99 | |
---|
100 | LDFLAGS=$(FCGI_LIB) $(CURL_LIB) $(PYTHON_LIB) $(LIBXML_LIB) $(LIBCGIC_LIB) $(GDAL_LIB) $(OPENSSL_DIR)\lib\libeay32.lib $(OPENSSL_DIR)\lib\ssleay32.lib $(LIBINTL_LIB) /machine:i386 |
---|