root/tags/gdal_1_3_0/nmake.opt

Revision 8056, 7.2 kB (checked in by fwarmerdam, 3 years ago)

13 now dll version

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1
2 # Location to install .exe, .dll and python stuff
3 # Edit as required. GDAL_HOME is used for convenience here,
4 # but this particular relative organization is not mandatory.
5
6 GDAL_HOME = "C:\warmerda\bld"
7 BINDIR = $(GDAL_HOME)\bin
8 PY_INST_DIR = $(GDAL_HOME)\pymod
9 LIBDIR = $(GDAL_HOME)\lib
10 INCDIR = $(GDAL_HOME)\include
11 DATADIR = $(GDAL_HOME)\data
12 HTMLDIR = $(GDAL_HOME)\html
13
14 # Set this to the installed directory containing python.  If you don't
15 # have python just let it point to a directory that does not exist (as now).
16 PYDIR   =       "C:\Software\Python24"
17
18 # Set the location of your SWIG installation
19 SWIG = D:\swig\swig-1.3.25\swig.exe
20
21 # Uncomment the first for an optimized build or the second for a debug build.
22 #OPTFLAGS=      /nologo /MD /GX /Ox
23 OPTFLAGS=       /nologo /MD /GX /Zi /Fd$(GDAL_ROOT)\gdal.pdb
24
25 # If you don't want some entry points to have STDCALL conventions,
26 # comment out the following and add -DCPL_DISABLE_STDCALL in OPTFLAGS
27 STDCALL=YES
28
29 # Version number embedded in DLL name.
30 VERSION =       13
31
32 # Uncomment the following to link OGR utilities against main GDAL DLL
33 # instead of statically linking against OGR libraries.
34 DLLBUILD=1
35
36 # Enable all OGR formats, or only raster formats?  Comment out to disable
37 # vector formats.
38 INCLUDE_OGR_FRMTS = YES
39
40 # Location of Visual C++ directory (only required for following SETARGV stuff)
41 VCDIR   =       D:\Software\VStudio\VC98
42
43 # Enable the following if VCDIR set properly, and you want the utility
44 # programs to be able to expand wildcards.
45 #SETARGV =      "$(VCDIR)\lib\setargv.obj"
46
47 # Comment out the following to disable BSB support.
48 BSB_SUPPORTED = 1
49
50 # Comment out the following to disable ODBC support.
51 ODBC_SUPPORTED = 1
52
53 # Comment out the following to disable JPEG support.
54 JPEG_SUPPORTED = 1
55
56 #if using an external jpeg library uncomment the follwing lines
57 #JPEG_EXTERNAL_LIB = 1
58 #JPEGDIR = c:/projects/jpeg-6b
59 #JPEG_LIB = $(JPEGDIR)/libjpeg.lib
60
61 #if using an external png library uncomment the follwing lines
62 #PNG_EXTERNAL_LIB = 1
63 #PNGDIR = c:/projects/libpng-1.0.8
64 #PNG_LIB = $(PNGDIR)/libpng.lib
65
66 # if using an external libtiff library
67 #TIFF_INC =     -Ic:/warmerda/libtiff/libtiff
68 #TIFF_LIB =     c:/warmerda/libtiff/libtiff/libtiff_i.lib
69
70 # if using an external libgeotiff library
71 #GEOTIFF_INC =   -Ic:/warmerda/libgeotiff -Ic:/warmerda/libgeotiff/libxtiff
72 #GEOTIFF_LIB =   C:/warmerda/libgeotiff/geotiff_i.lib
73
74 # Uncomment the following and update to enable ECW support.
75 #ECWDIR  =      C:\warmerda\supportlibs\ECWSDK3.1b
76 #ECWLIB  =       $(ECWDIR)\lib\NCSEcw.lib $(ECWDIR)\lib\NCSEcwC.lib \
77 #               $(ECWDIR)\lib\NCSUtil.lib
78
79 # Uncomment the following and update to enable OGDI support.
80 #OGDIDIR =      D:\warmerda\iii\devdir
81 #OGDIVER =      31
82 #OGDILIB =      $(OGDIDIR)\lib\$(TARGET)\ogdi$(OGDIVER).lib \
83 #               $(OGDIDIR)\lib\$(TARGET)\zlib_ogdi$(OGDIVER).lib
84
85 # Uncomment for Xerces based GML support.
86 #XERCES_DIR =   d:\warmerda\iii\drivers\gml\xerces-c1_7_0-win32
87 #XERCES_INCLUDE = -I$(XERCES_DIR)/include -I$(XERCES_DIR)/include/xercesc
88 #XERCES_LIB = $(XERCES_DIR)/lib/xerces-c_1.lib
89
90 # Uncomment for JasPer based JPEG2000 support
91 #JASPER_DIR = d:\projects\jasper-1.700.2.uuid
92 #JASPER_INCLUDE = -I$(JASPER_DIR)\src\libjasper\include -DJAS_WIN_MSVC_BUILD
93 #JASPER_LIB = $(JASPER_DIR)\src\msvc\Win32_Release\libjasper.lib
94
95 # Uncommment if you have Kakadu 4.0 or newer
96 #KAKDIR =       D:\warmerda\jp2\kakadu
97
98 # Uncomment the following and update to enable NCSA HDF Release 4 support.
99 #HDF4_DIR =     D:\warmerda\HDF41r5
100 #HDF4_LIB =     /LIBPATH:$(HDF4_DIR)\lib Ws2_32.lib
101
102 # Uncomment the following and update to enable NCSA HDF Release 5 support.
103 #HDF5_DIR =     c:\warmerda\supportlibs\hdf5\5-164-win
104 #SZIP_DIR =      c:\warmerda\supportlibs\hdf5\szip20
105 #HDF5_LIB =     $(HDF5_DIR)\dll\hdf5dll.lib \
106 #               $(SZIP_DIR)\dll\szlibdll.lib
107
108 # Uncomment the following for MrSID support.
109 # You will likely require /MD and /EHsc in OPTFLAGS.
110 #MRSID_DIR =    d:\projects\mrsid
111 #MRSID_INCLUDE = -I$(MRSID_DIR)\include\base -I$(MRSID_DIR)\include\support \
112 #               -I$(MRSID_DIR)\include\metadata \
113 #               -I$(MRSID_DIR)\include\mrsid_readers \
114 #               -I$(MRSID_DIR)\include\j2k_readers
115 #MRSID_LIB =    $(MRSID_DIR)\lib\Release_md\lti_dsdk_dll.lib advapi32.lib user32.lib
116 # Enable these, if you have the MrSID Encoding SDK and want
117 # to create MrSID files
118 #MRSID_FLAGS =  -DMRSID_ESDK_VERSION_40 $(MRSID_FLAGS)
119 #MRSID_INCLUDE = -I$(MRSID_DIR)\include\mrsid_writers \
120 #               -I$(MRSID_DIR)\include\j2k_writers $(MRSID_INCLUDE)
121 #MRSID_LIB =    $(MRSID_DIR)\lib\Release_md\lti_esdk_dll.lib $(MRSID_LIB)-
122 # Enable the following if you prefer to build MrSID support as a plugin.
123 #MRSID_PLUGIN = YES
124
125 # PostGIS Libraries
126 #PG_INC_DIR = n:\pkg\libpq_win32\include
127 #PG_LIB = n:\pkg\libpq_win32\lib\libpqdll.lib wsock32.lib
128
129 # MySQL Libraries
130 # NOTE: Need /MT instead of /MD, also enable /GX switch.
131 #MYSQL_INC_DIR = D:\Software\MySQLServer4.1\include
132 #MYSQL_LIB = D:\Software\MySQLServer4.1\lib\opt\libmysql.lib advapi32.lib
133
134 # SQLite Libraries
135 #SQLITE_INC=-IN:\pkg\sqlite-win32
136 #SQLITE_LIB=N:\pkg\sqlite-win32\sqlite3_i.lib
137
138 # Uncomment the following and update to enable FME support.
139 #FME_DIR =      d:\Software\fme
140
141 # Uncomment the following to enable FITS format support
142 #FITS_DIR =     "D:\Users\154712\My Documents\Visual Studio Projects\cfitsio"
143 #FITS_LIB =     $(FITS_DIR)\cfitsio.lib
144
145 # Uncomment the following to enable NetCDF format.
146 #NETCDF_SETTING=yes
147 #NETCDF_LIB=C:\Software\netcdf\lib\netcdf.lib
148 #NETCDF_INC_DIR=C:\Software\netcdf\include
149 # PROJ.4 stuff
150 # Uncomment the following lines to link PROJ.4 library statically. Otherwise
151 # it will be linked dynamically during runtime.
152 #PROJ_FLAGS = -DPROJ_STATIC
153 #PROJ_INCLUDE = -Id:\projects\proj.4\src
154 #PROJ_LIB = d:\projects\proj.4\src
155
156 # Add ORACLE support.
157
158 #ORACLE_HOME =  C:/Software/Oracle/Product/10.1.0/db_1
159
160 !IFDEF ORACLE_HOME
161 OCI_LIB =       $(ORACLE_HOME)\oci\lib\msvc\ociw32.lib \
162                 $(ORACLE_HOME)\oci\lib\msvc\oci.lib
163 !ENDIF
164
165 # Uncomment for GEOS support
166 #GEOS_CFLAGS = -Ic:/warmerda/geos/source/headers -DHAVE_GEOS
167 #GEOS_LIB     = C:/warmerda/geos/source/geos.lib
168
169 # Any extra libraries needed on this platform?
170 ADD_LIBS        =
171
172 # Comment out the following if you want to build with Python support, but
173 # you don't have Numeric Python installed (with include files).  Numeric
174 # integration may not work.
175 #HAVE_NUMPY=1
176
177 ########### END OF STUFF THAT NORMALLY NEEDS TO BE UPDATED ##################
178
179
180 # Location of MS Data Access SDK (not really needed anymore I think)
181 #MSDASDK =      D:\Software\MDAC_2.6
182
183 GDAL_DLL =      gdal$(VERSION).dll
184
185 INC     =       -I$(GDAL_ROOT)\port -I$(GDAL_ROOT)\ogr -I$(GDAL_ROOT)\gcore \
186                 -I$(GDAL_ROOT)\alg
187
188 #LINKER_FLAGS = /NODEFAULTLIB:LIBC
189 #LINKER_FLAGS = /debug
190
191 CFLAGS  =       $(OPTFLAGS) $(INC) $(EXTRAFLAGS)
192 MAKE    =       nmake /nologo
193
194 CC      =       cl
195
196 CPLLIB  =    $(GDAL_ROOT)/port/cpl.lib
197
198 !IFDEF DLLBUILD
199 GDALLIB =    $(GDAL_ROOT)/gdal_i.lib
200 !ELSE
201 GDALLIB =    $(GDAL_ROOT)/gdal.lib
202 !ENDIF
203
204 !IFDEF ODBC_SUPPORTED
205 ODBCLIB = odbc32.lib
206 !ENDIF
207
208 !IFDEF MRSID_DIR
209 !IFNDEF MRSID_PLUGIN
210 MRSID_ELIB = $(MRSID_LIB)
211 !ENDIF
212 !ENDIF
213
214 EXTERNAL_LIBS = $(OGDILIB) $(XERCES_LIB) $(OCI_LIB) $(PG_LIB) $(ODBCLIB) \
215                 $(ECWLIB) $(HDF4_LIB) $(FME_LIB) $(JASPER_LIB) $(MRSID_ELIB) \
216                 $(FITS_LIB) $(JPEG_LIB) $(PNG_LIB) $(NETCDF_LIB) $(PROJ4_LIB) \
217                 $(GEOTIFF_LIB) $(TIFF_LIB) $(PROJ_LIB) $(SQLITE_LIB) \
218                 $(MYSQL_LIB) $(GEOS_LIB) $(HDF5_LIB) $(ADD_LIBS)
219
220 .c.obj:
221         $(CC) $(CFLAGS) /c $*.c
222
223 .cpp.obj:       
224         $(CC) $(CFLAGS) /c $*.cpp
225
Note: See TracBrowser for help on using the browser.