| 1 |
# $Id$ |
|---|
| 2 |
# |
|---|
| 3 |
# nmake.opt - main configuration file for NMAKE makefiles. |
|---|
| 4 |
# |
|---|
| 5 |
############################################################################### |
|---|
| 6 |
# For convenience, user may put custom settings to private mynmake.opt |
|---|
| 7 |
# and use EXT_NMAKE_OPT option while calling nmake.exe, as follows: |
|---|
| 8 |
# |
|---|
| 9 |
# nmake -f makefile.vc EXT_NMAKE_OPT=mynmake.opt |
|---|
| 10 |
!IFDEF EXT_NMAKE_OPT |
|---|
| 11 |
!INCLUDE $(EXT_NMAKE_OPT) |
|---|
| 12 |
!ENDIF |
|---|
| 13 |
|
|---|
| 14 |
############################################################################### |
|---|
| 15 |
# Check version of Visual C++ compiler: |
|---|
| 16 |
# nmake -f makefile.vc MSVC_VER=xxxx |
|---|
| 17 |
# where xxxx is one of following: |
|---|
| 18 |
# 1500 = 9.0 (2008) |
|---|
| 19 |
# 1400 = 8.0 (2005) - specific compilation flags, different from older VC++ |
|---|
| 20 |
# 1310 = 7.1 (2003) |
|---|
| 21 |
# 1300 = 7.0 (2002) |
|---|
| 22 |
# 1200 = 6.0 |
|---|
| 23 |
# |
|---|
| 24 |
!IFNDEF MSVC_VER |
|---|
| 25 |
#assume msvc 7.1 |
|---|
| 26 |
MSVC_VER=1310 |
|---|
| 27 |
!ENDIF |
|---|
| 28 |
|
|---|
| 29 |
############################################################################### |
|---|
| 30 |
# Optional use of Visual Leak Detector (VLD) by Dan Moulding, available at |
|---|
| 31 |
# http://dmoulding.googlepages.com/vld |
|---|
| 32 |
# Uncomment this line to use VLD in debug configuration only: |
|---|
| 33 |
#MSVC_VLD_DIR="C:\Program Files\Visual Leak Detector" |
|---|
| 34 |
|
|---|
| 35 |
############################################################################### |
|---|
| 36 |
# Location to install .exe, .dll and python stuff |
|---|
| 37 |
# Edit as required. GDAL_HOME is used for convenience here, |
|---|
| 38 |
# but this particular relative organization is not mandatory. |
|---|
| 39 |
# But the paths *should* be absolute (relative paths mess up in submakefiles). |
|---|
| 40 |
|
|---|
| 41 |
!IFNDEF GDAL_HOME |
|---|
| 42 |
GDAL_HOME = "C:\warmerda\bld" |
|---|
| 43 |
!ENDIF |
|---|
| 44 |
BINDIR = $(GDAL_HOME)\bin |
|---|
| 45 |
PLUGINDIR = $(BINDIR)\gdalplugins |
|---|
| 46 |
PY_INST_DIR = $(GDAL_HOME)\pymod |
|---|
| 47 |
LIBDIR = $(GDAL_HOME)\lib |
|---|
| 48 |
INCDIR = $(GDAL_HOME)\include |
|---|
| 49 |
DATADIR = $(GDAL_HOME)\data |
|---|
| 50 |
HTMLDIR = $(GDAL_HOME)\html |
|---|
| 51 |
|
|---|
| 52 |
# Set this to the installed directory containing python. If you don't |
|---|
| 53 |
# have python just let it point to a directory that does not exist (as now). |
|---|
| 54 |
!IFNDEF PYDIR |
|---|
| 55 |
PYDIR = "C:\Software\Python24" |
|---|
| 56 |
!ENDIF |
|---|
| 57 |
|
|---|
| 58 |
# Set the location of your SWIG installation |
|---|
| 59 |
!IFNDEF SWIG |
|---|
| 60 |
SWIG = swig.exe |
|---|
| 61 |
!ENDIF |
|---|
| 62 |
|
|---|
| 63 |
# SWIG Java settings |
|---|
| 64 |
!IFNDEF JAVA_HOME |
|---|
| 65 |
JAVA_HOME = c:\j2sdk1.4.2_12 |
|---|
| 66 |
!ENDIF |
|---|
| 67 |
!IFNDEF ANT_HOME |
|---|
| 68 |
ANT_HOME=c:\programmi\apache-ant-1.7.0 |
|---|
| 69 |
!ENDIF |
|---|
| 70 |
JAVADOC=$(JAVA_HOME)\bin\javadoc |
|---|
| 71 |
JAVAC=$(JAVA_HOME)\bin\javac |
|---|
| 72 |
JAVA=$(JAVA_HOME)\bin\java |
|---|
| 73 |
JAR=$(JAVA_HOME)\bin\jar |
|---|
| 74 |
JAVA_INCLUDE=-I$(JAVA_HOME)\include -I$(JAVA_HOME)\include\win32 |
|---|
| 75 |
|
|---|
| 76 |
# Compilation flags |
|---|
| 77 |
!IFNDEF OPTFLAGS |
|---|
| 78 |
!IF $(MSVC_VER) >= 1400 |
|---|
| 79 |
!IFNDEF DEBUG |
|---|
| 80 |
OPTFLAGS= /nologo /MD /EHsc /Ox /W3 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG |
|---|
| 81 |
!ELSE |
|---|
| 82 |
OPTFLAGS= /nologo /MD /EHsc /Zi /W4 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /Fd$(GDAL_ROOT)\gdal$(VERSION).pdb |
|---|
| 83 |
!ENDIF |
|---|
| 84 |
!ELSE |
|---|
| 85 |
!IFNDEF DEBUG |
|---|
| 86 |
OPTFLAGS= /nologo /MD /EHsc /GR /Ox /W3 /DNDEBUG |
|---|
| 87 |
!ELSE |
|---|
| 88 |
OPTFLAGS= /nologo /MD /EHsc /GR /Zi /W4 /Fd$(GDAL_ROOT)\gdal$(VERSION).pdb |
|---|
| 89 |
!ENDIF |
|---|
| 90 |
!ENDIF #MSVC_VER |
|---|
| 91 |
!ENDIF # OPTFLAGS |
|---|
| 92 |
|
|---|
| 93 |
# Linker debug options |
|---|
| 94 |
!IFDEF DEBUG |
|---|
| 95 |
LDEBUG= /debug |
|---|
| 96 |
!ENDIF |
|---|
| 97 |
|
|---|
| 98 |
# Uncomment the following if you are building for 64-bit windows |
|---|
| 99 |
# (x64). You'll need to have PATH, INCLUDE and LIB set up for 64-bit |
|---|
| 100 |
# compiles. |
|---|
| 101 |
#WIN64=YES |
|---|
| 102 |
|
|---|
| 103 |
# If you don't want some entry points to have STDCALL conventions, |
|---|
| 104 |
# comment out the following and add -DCPL_DISABLE_STDCALL in OPTFLAGS. |
|---|
| 105 |
# This option has no effect on 64-bit windows. |
|---|
| 106 |
STDCALL=YES |
|---|
| 107 |
|
|---|
| 108 |
# Version number embedded in DLL name. |
|---|
| 109 |
VERSION = 16dev |
|---|
| 110 |
|
|---|
| 111 |
# Comment the following out if you want PAM supported disabled |
|---|
| 112 |
# by default. |
|---|
| 113 |
PAM_SETTING=-DPAM_ENABLED |
|---|
| 114 |
|
|---|
| 115 |
# Uncomment the following to link OGR utilities against main GDAL DLL |
|---|
| 116 |
# instead of statically linking against OGR libraries. |
|---|
| 117 |
DLLBUILD=1 |
|---|
| 118 |
|
|---|
| 119 |
# Enable all OGR formats, or only raster formats? Comment out to disable |
|---|
| 120 |
# vector formats. |
|---|
| 121 |
INCLUDE_OGR_FRMTS = YES |
|---|
| 122 |
|
|---|
| 123 |
# Location of Visual C++ directory (only required for following SETARGV stuff) |
|---|
| 124 |
VCDIR = D:\Software\VStudio\VC98 |
|---|
| 125 |
|
|---|
| 126 |
# Enable the following if VCDIR set properly, and you want the utility |
|---|
| 127 |
# programs to be able to expand wildcards. |
|---|
| 128 |
#SETARGV = "$(VCDIR)\lib\setargv.obj" |
|---|
| 129 |
|
|---|
| 130 |
# Comment out the following to disable BSB support. |
|---|
| 131 |
BSB_SUPPORTED = 1 |
|---|
| 132 |
|
|---|
| 133 |
# Comment out the following to disable ODBC support. |
|---|
| 134 |
ODBC_SUPPORTED = 1 |
|---|
| 135 |
|
|---|
| 136 |
# Comment out the following to disable JPEG support. |
|---|
| 137 |
JPEG_SUPPORTED = 1 |
|---|
| 138 |
|
|---|
| 139 |
#if using an external jpeg library uncomment the follwing lines |
|---|
| 140 |
#JPEG_EXTERNAL_LIB = 1 |
|---|
| 141 |
#JPEGDIR = c:/projects/jpeg-6b |
|---|
| 142 |
#JPEG_LIB = $(JPEGDIR)/libjpeg.lib |
|---|
| 143 |
|
|---|
| 144 |
#if using an external png library uncomment the follwing lines |
|---|
| 145 |
#PNG_EXTERNAL_LIB = 1 |
|---|
| 146 |
#PNGDIR = c:/projects/libpng-1.0.8 |
|---|
| 147 |
#PNG_LIB = $(PNGDIR)/libpng.lib |
|---|
| 148 |
|
|---|
| 149 |
# if using an external libtiff library |
|---|
| 150 |
#TIFF_INC = -Ic:/warmerda/libtiff/libtiff |
|---|
| 151 |
#TIFF_LIB = c:/warmerda/libtiff/libtiff/libtiff_i.lib |
|---|
| 152 |
# uncomment following line, if you have libtiff version >= 4.0 to |
|---|
| 153 |
# enable BigTIFF support |
|---|
| 154 |
#TIFF_OPTS= -DBIGTIFF_SUPPORT |
|---|
| 155 |
|
|---|
| 156 |
# if using an external libgeotiff library |
|---|
| 157 |
#GEOTIFF_INC = -Ic:/warmerda/libgeotiff -Ic:/warmerda/libgeotiff/libxtiff |
|---|
| 158 |
#GEOTIFF_LIB = C:/warmerda/libgeotiff/geotiff_i.lib |
|---|
| 159 |
|
|---|
| 160 |
# Uncomment the following and update to enable ECW support. |
|---|
| 161 |
#ECW_PLUGIN = NO |
|---|
| 162 |
#ECWDIR = C:\warmerda\libecwj2-3.3 |
|---|
| 163 |
#ECWLIB = $(ECWDIR)\Source\NCSBuildQmake\Debug\libecwj2.lib |
|---|
| 164 |
|
|---|
| 165 |
# DWG/DXF support via DWGdirect from Open Design Alliance |
|---|
| 166 |
|
|---|
| 167 |
#DWGDIRECT=C:\warmerda\DWGdirect |
|---|
| 168 |
#DWG_LIB_DIR=$(DWGDIRECT)\lib\VC6MD |
|---|
| 169 |
#DWG_LIB=$(DWG_LIB_DIR)\DD_AcisBuilder_dll.lib $(DWG_LIB_DIR)\DD_AcisRenderer_dll.lib $(DWG_LIB_DIR)\DD_Alloc_dll.lib $(DWG_LIB_DIR)\DD_BmpExport_dll.lib $(DWG_LIB_DIR)\DD_Br_dll.lib $(DWG_LIB_DIR)\DD_Db_dll.lib $(DWG_LIB_DIR)\DD_DwfExport_dll.lib $(DWG_LIB_DIR)\DD_DwfImport_dll.lib $(DWG_LIB_DIR)\DD_Ge_dll.lib $(DWG_LIB_DIR)\DD_Gi_dll.lib $(DWG_LIB_DIR)\DD_Gs_dll.lib $(DWG_LIB_DIR)\DD_ModelerGeometry_dll.lib $(DWG_LIB_DIR)\DD_Root_dll.lib $(DWG_LIB_DIR)\DD_Sm_dll.lib $(DWG_LIB_DIR)\DD_SpatialIndex_dll.lib $(DWG_LIB_DIR)\DD_VC6MD_OleDataAccess_dll.lib |
|---|
| 170 |
|
|---|
| 171 |
# Uncomment the following and update to enable OGDI support. |
|---|
| 172 |
#OGDIDIR = D:\warmerda\iii\devdir |
|---|
| 173 |
#OGDIVER = 31 |
|---|
| 174 |
#OGDILIB = $(OGDIDIR)\lib\$(TARGET)\ogdi$(OGDIVER).lib \ |
|---|
| 175 |
# $(OGDIDIR)\lib\$(TARGET)\zlib_ogdi$(OGDIVER).lib |
|---|
| 176 |
|
|---|
| 177 |
# Uncomment for Expat support (required for KML read support). |
|---|
| 178 |
#EXPAT_DIR = "C:\Program Files\Expat 2.0.1" |
|---|
| 179 |
#EXPAT_INCLUDE = -I$(EXPAT_DIR)/source/lib |
|---|
| 180 |
#EXPAT_LIB = $(EXPAT_DIR)/bin/libexpat.lib |
|---|
| 181 |
|
|---|
| 182 |
# Uncomment for Xerces based GML support. |
|---|
| 183 |
#XERCES_DIR = c:\warmerda\supportlibs\xerces-c_2_6_0 |
|---|
| 184 |
#XERCES_INCLUDE = -I$(XERCES_DIR)/include -I$(XERCES_DIR)/include/xercesc |
|---|
| 185 |
#XERCES_LIB = $(XERCES_DIR)/lib/xerces-c_2.lib |
|---|
| 186 |
|
|---|
| 187 |
# Uncomment if the NAS source is available, and Xerces is available. |
|---|
| 188 |
#NAS_ENABLED = YES |
|---|
| 189 |
|
|---|
| 190 |
# Uncomment the following for Interlis support. Note that a Xercex 2.x |
|---|
| 191 |
# is also required (see above). Also, Interlis support only works with |
|---|
| 192 |
# Visual Studio.NET or newer, not VC6. |
|---|
| 193 |
#ILI_ENABLED = YES |
|---|
| 194 |
|
|---|
| 195 |
# Uncomment for JasPer based JPEG2000 support |
|---|
| 196 |
#JASPER_DIR = d:\projects\jasper-1.700.2.uuid |
|---|
| 197 |
#JASPER_INCLUDE = -I$(JASPER_DIR)\src\libjasper\include -DJAS_WIN_MSVC_BUILD |
|---|
| 198 |
#JASPER_LIB = $(JASPER_DIR)\src\msvc\Win32_Release\libjasper.lib |
|---|
| 199 |
# Uncomment the following line if you have patched UUID-enabled version |
|---|
| 200 |
# of JasPer from ftp://ftp.remotesensing.org/gdal/ |
|---|
| 201 |
#JASPER_INCLUDE = $(JASPER_INCLUDE) -DHAVE_JASPER_UUID |
|---|
| 202 |
|
|---|
| 203 |
# Uncommment if you have Kakadu 4.0 or newer |
|---|
| 204 |
#KAKDIR = D:\warmerda\jp2\kakadu |
|---|
| 205 |
|
|---|
| 206 |
# Uncomment the following and update to enable NCSA HDF Release 4 support. |
|---|
| 207 |
#HDF4_PLUGIN = NO |
|---|
| 208 |
#HDF4_DIR = D:\warmerda\HDF41r5 |
|---|
| 209 |
#HDF4_LIB = /LIBPATH:$(HDF4_DIR)\lib Ws2_32.lib |
|---|
| 210 |
|
|---|
| 211 |
# Uncomment the following and update to enable NCSA HDF Release 5 support. |
|---|
| 212 |
#HDF5_PLUGIN = NO |
|---|
| 213 |
#HDF5_DIR = c:\warmerda\supportlibs\hdf5\5-164-win |
|---|
| 214 |
#HDF5_LIB = $(HDF5_DIR)\dll\hdf5dll.lib |
|---|
| 215 |
|
|---|
| 216 |
# Uncomment the following for MrSID support. |
|---|
| 217 |
# You will likely require /MD and /EHsc in OPTFLAGS. |
|---|
| 218 |
#MRSID_DIR = d:\projects\mrsid |
|---|
| 219 |
#MRSID_INCLUDE = -I$(MRSID_DIR)\include\base -I$(MRSID_DIR)\include\support \ |
|---|
| 220 |
# -I$(MRSID_DIR)\include\metadata \ |
|---|
| 221 |
# -I$(MRSID_DIR)\include\mrsid_readers \ |
|---|
| 222 |
# -I$(MRSID_DIR)\include\j2k_readers |
|---|
| 223 |
#MRSID_LIB = $(MRSID_DIR)\lib\Release_md\lti_dsdk_dll.lib advapi32.lib user32.lib |
|---|
| 224 |
# Comment out the following to supress JP2MRSID driver. |
|---|
| 225 |
#MRSID_FLAGS = -DMRSID_J2K |
|---|
| 226 |
# Enable these, if you have the MrSID Encoding SDK and want |
|---|
| 227 |
# to create MrSID files |
|---|
| 228 |
#MRSID_FLAGS = -DMRSID_ESDK $(MRSID_FLAGS) |
|---|
| 229 |
#MRSID_INCLUDE = -I$(MRSID_DIR)\include\mrsid_writers \ |
|---|
| 230 |
# -I$(MRSID_DIR)\include\j2k_writers $(MRSID_INCLUDE) |
|---|
| 231 |
#MRSID_LIB = $(MRSID_DIR)\lib\Release_md\lti_esdk_dll.lib $(MRSID_LIB) |
|---|
| 232 |
# Enable the following if you prefer to build MrSID support as a plugin. |
|---|
| 233 |
#MRSID_PLUGIN = YES |
|---|
| 234 |
|
|---|
| 235 |
# PostGIS Libraries |
|---|
| 236 |
#PG_INC_DIR = n:\pkg\libpq_win32\include |
|---|
| 237 |
#PG_LIB = n:\pkg\libpq_win32\lib\libpqdll.lib wsock32.lib |
|---|
| 238 |
|
|---|
| 239 |
# MySQL Libraries |
|---|
| 240 |
# NOTE: Need /MT instead of /MD, also enable /EHsc switch. |
|---|
| 241 |
#MYSQL_INC_DIR = D:\Software\MySQLServer4.1\include |
|---|
| 242 |
#MYSQL_LIB = D:\Software\MySQLServer4.1\lib\opt\libmysql.lib advapi32.lib |
|---|
| 243 |
|
|---|
| 244 |
# SQLite Libraries |
|---|
| 245 |
#SQLITE_INC=-IN:\pkg\sqlite-win32 |
|---|
| 246 |
#SQLITE_LIB=N:\pkg\sqlite-win32\sqlite3_i.lib |
|---|
| 247 |
|
|---|
| 248 |
# Informix Data Blade |
|---|
| 249 |
#INFORMIXDIR="C:\Program Files\IBM\Informix\Client-SDK" |
|---|
| 250 |
#IDB_INC=-I$(INFORMIXDIR)\incl\cpp -I$(INFORMIXDIR)\incl\dmi \ |
|---|
| 251 |
# -I$(INFORMIXDIR)\incl\esql |
|---|
| 252 |
#IDB_LIB=$(INFORMIXDIR)\lib\cpp\libthc++.lib \ |
|---|
| 253 |
# $(INFORMIXDIR)\lib\dmi\libthdmi.lib $(INFORMIXDIR)\lib\isqlt09a.lib |
|---|
| 254 |
|
|---|
| 255 |
# Uncomment the following and update to enable FME support. |
|---|
| 256 |
#FME_DIR = d:\Software\fme |
|---|
| 257 |
|
|---|
| 258 |
# Uncomment the following to enable FITS format support |
|---|
| 259 |
#FITS_PLUGIN = NO |
|---|
| 260 |
#FITS_INC_DIR = c:\dev32\usr\include\cfitsio |
|---|
| 261 |
#FITS_LIB = c:\dev32\usr\lib\cfitsio.lib |
|---|
| 262 |
|
|---|
| 263 |
# Comment out to disable GRIB support. |
|---|
| 264 |
GRIB_SETTING=yes |
|---|
| 265 |
|
|---|
| 266 |
# Uncomment the following to enable NetCDF format. |
|---|
| 267 |
#NETCDF_PLUGIN = NO |
|---|
| 268 |
#NETCDF_SETTING=yes |
|---|
| 269 |
#NETCDF_LIB=C:\Software\netcdf\lib\netcdf.lib |
|---|
| 270 |
#NETCDF_INC_DIR=C:\Software\netcdf\include |
|---|
| 271 |
# PROJ.4 stuff |
|---|
| 272 |
# Uncomment the following lines to link PROJ.4 library statically. Otherwise |
|---|
| 273 |
# it will be linked dynamically during runtime. |
|---|
| 274 |
#PROJ_FLAGS = -DPROJ_STATIC |
|---|
| 275 |
#PROJ_INCLUDE = -Id:\projects\proj.4\src |
|---|
| 276 |
#PROJ_LIBRARY = d:\projects\proj.4\src\proj_i.lib |
|---|
| 277 |
|
|---|
| 278 |
# Add ORACLE support. |
|---|
| 279 |
# Uncomment the following line to enable OCI Oracle Spatial support. |
|---|
| 280 |
#ORACLE_HOME = C:/Software/Oracle/Product/10.1.0/db_1 |
|---|
| 281 |
# Uncomment the following if you prefer to build OCI support as a plugin. |
|---|
| 282 |
#OCI_PLUGIN = YES |
|---|
| 283 |
|
|---|
| 284 |
!IFDEF ORACLE_HOME |
|---|
| 285 |
OCI_LIB = $(ORACLE_HOME)\oci\lib\msvc\ociw32.lib \ |
|---|
| 286 |
$(ORACLE_HOME)\oci\lib\msvc\oci.lib |
|---|
| 287 |
OCI_INCLUDE = -I$(ORACLE_HOME)\oci\include |
|---|
| 288 |
!ENDIF |
|---|
| 289 |
|
|---|
| 290 |
#SDE_ENABLED = YES |
|---|
| 291 |
#SDE_VERSION=91 |
|---|
| 292 |
#SDE_PLUGIN = NO |
|---|
| 293 |
#SDE_SDK = C:\arcgis\arcsde |
|---|
| 294 |
#SDE_INC = $(SDE_SDK)\include |
|---|
| 295 |
#SDE_LIB = $(SDE_SDK)\lib\pe$(SDE_VERSION).lib \ |
|---|
| 296 |
# $(SDE_SDK)\lib\sde$(SDE_VERSION).lib $(SDE_SDK)\lib\sg$(SDE_VERSION).lib |
|---|
| 297 |
|
|---|
| 298 |
# Uncomment to use libcurl (DLL by default) |
|---|
| 299 |
# The cURL library is used for WCS, WMS, GeoJSON, SRS call importFromUrl(), etc. |
|---|
| 300 |
#CURL_DIR=C:\curl-7.15.0 |
|---|
| 301 |
#CURL_INC = -I$(CURL_DIR)/include |
|---|
| 302 |
# Uncoment following line to use libcurl as dynamic library |
|---|
| 303 |
#CURL_LIB = $(CURL_DIR)/libcurl_imp.lib wsock32.lib wldap32.lib winmm.lib |
|---|
| 304 |
# Uncoment following two lines to use libcurl as static library |
|---|
| 305 |
#CURL_LIB = $(CURL_DIR)/libcurl.lib wsock32.lib wldap32.lib winmm.lib |
|---|
| 306 |
#CURL_CFLAGS = -DCURL_STATICLIB |
|---|
| 307 |
|
|---|
| 308 |
# Uncomment for DODS / OPeNDAP support |
|---|
| 309 |
#DODS_DIR = C:\libdap3.6.2 |
|---|
| 310 |
#DODS_LIB = $(DODSDIR)\lib\libdapMD.lib |
|---|
| 311 |
|
|---|
| 312 |
# Uncomment for GEOS support |
|---|
| 313 |
#GEOS_DIR=C:/warmerda/geos |
|---|
| 314 |
#GEOS_CFLAGS = -I$(GEOS_DIR)/capi -I$(GEOS_DIR)/source/headers -DHAVE_GEOS |
|---|
| 315 |
#GEOS_LIB = $(GEOS_DIR)/source/geos_c_i.lib |
|---|
| 316 |
|
|---|
| 317 |
# Any extra libraries needed on this platform? |
|---|
| 318 |
ADD_LIBS = |
|---|
| 319 |
|
|---|
| 320 |
# Comment out the following if you want to build with Python support, but |
|---|
| 321 |
# you don't have Numeric Python installed (with include files). Numeric |
|---|
| 322 |
# integration may not work. This only appears to the old generation |
|---|
| 323 |
# bindings. |
|---|
| 324 |
#HAVE_NUMPY=1 |
|---|
| 325 |
|
|---|
| 326 |
########### END OF STUFF THAT NORMALLY NEEDS TO BE UPDATED ################## |
|---|
| 327 |
|
|---|
| 328 |
|
|---|
| 329 |
# Location of MS Data Access SDK (not really needed anymore I think) |
|---|
| 330 |
#MSDASDK = D:\Software\MDAC_2.6 |
|---|
| 331 |
|
|---|
| 332 |
GDAL_DLL = gdal$(VERSION).dll |
|---|
| 333 |
|
|---|
| 334 |
INC = -I$(GDAL_ROOT)\port -I$(GDAL_ROOT)\ogr -I$(GDAL_ROOT)\gcore \ |
|---|
| 335 |
-I$(GDAL_ROOT)\alg -I$(GDAL_ROOT)\ogr\ogrsf_frmts |
|---|
| 336 |
|
|---|
| 337 |
!IFDEF MSVC_VLD_DIR |
|---|
| 338 |
MSVC_VLD_FLAGS=-DMSVC_USE_VLD -I$(MSVC_VLD_DIR)\include |
|---|
| 339 |
MSVC_VLD_LIB=/LIBPATH:$(MSVC_VLD_DIR)/lib |
|---|
| 340 |
!ENDIF |
|---|
| 341 |
|
|---|
| 342 |
#LINKER_FLAGS = /NODEFAULTLIB:LIBC |
|---|
| 343 |
LINKER_FLAGS = $(MSVC_VLD_LIB) $(LDEBUG) |
|---|
| 344 |
|
|---|
| 345 |
|
|---|
| 346 |
CFLAGS = $(OPTFLAGS) $(INC) $(EXTRAFLAGS) $(MSVC_VLD_FLAGS) |
|---|
| 347 |
MAKE = nmake /nologo |
|---|
| 348 |
|
|---|
| 349 |
CC = cl |
|---|
| 350 |
|
|---|
| 351 |
INSTALL = xcopy /y /r /d /f |
|---|
| 352 |
|
|---|
| 353 |
CPLLIB = $(GDAL_ROOT)/port/cpl.lib |
|---|
| 354 |
|
|---|
| 355 |
!IFDEF DLLBUILD |
|---|
| 356 |
GDALLIB = $(GDAL_ROOT)/gdal_i.lib |
|---|
| 357 |
!ELSE |
|---|
| 358 |
GDALLIB = $(GDAL_ROOT)/gdal.lib |
|---|
| 359 |
!ENDIF |
|---|
| 360 |
|
|---|
| 361 |
!IFDEF ODBC_SUPPORTED |
|---|
| 362 |
ODBCLIB = odbc32.lib odbccp32.lib user32.lib |
|---|
| 363 |
!ENDIF |
|---|
| 364 |
|
|---|
| 365 |
|
|---|
| 366 |
!IFDEF MRSID_DIR |
|---|
| 367 |
!IF "$(MRSID_PLUGIN)" != "YES" |
|---|
| 368 |
MRSID_LIB_LINK = $(MRSID_LIB) |
|---|
| 369 |
!ELSE |
|---|
| 370 |
MRSID_LIB_LINK= |
|---|
| 371 |
!ENDIF |
|---|
| 372 |
!ENDIF |
|---|
| 373 |
|
|---|
| 374 |
!IFDEF ECWDIR |
|---|
| 375 |
!IF "$(ECW_PLUGIN)" != "YES" |
|---|
| 376 |
ECW_LIB_LINK= $(ECWLIB) |
|---|
| 377 |
!ELSE |
|---|
| 378 |
ECW_LIB_LINK= |
|---|
| 379 |
!ENDIF |
|---|
| 380 |
!ENDIF |
|---|
| 381 |
|
|---|
| 382 |
!IFDEF FITS_LIB |
|---|
| 383 |
!IF "$(FITS_PLUGIN)" != "YES" |
|---|
| 384 |
FITS_LIB_LINK = $(FITS_LIB) |
|---|
| 385 |
!ELSE |
|---|
| 386 |
FITS_LIB_LINK = |
|---|
| 387 |
!ENDIF |
|---|
| 388 |
!ENDIF |
|---|
| 389 |
|
|---|
| 390 |
!IFDEF NETCDF_LIB |
|---|
| 391 |
!IF "$(NETCDF_PLUGIN)" != "YES" |
|---|
| 392 |
NETCDF_LIB_LINK = $(NETCDF_LIB) |
|---|
| 393 |
!ELSE |
|---|
| 394 |
NETCDF_LIB_LINK = |
|---|
| 395 |
!ENDIF |
|---|
| 396 |
!ENDIF |
|---|
| 397 |
|
|---|
| 398 |
!IFDEF HDF4_LIB |
|---|
| 399 |
!IF "$(HDF4_PLUGIN)" != "YES" |
|---|
| 400 |
HDF4_LIB_LINK = $(HDF4_LIB) |
|---|
| 401 |
!ELSE |
|---|
| 402 |
HDF4_LIB_LINK = |
|---|
| 403 |
!ENDIF |
|---|
| 404 |
!ENDIF |
|---|
| 405 |
|
|---|
| 406 |
!IFDEF HDF5_LIB |
|---|
| 407 |
!IF "$(HDF5_PLUGIN)" != "YES" |
|---|
| 408 |
HDF5_LIB_LINK = $(HDF5_LIB) |
|---|
| 409 |
!ELSE |
|---|
| 410 |
HDF5_LIB_LINK = |
|---|
| 411 |
!ENDIF |
|---|
| 412 |
!ENDIF |
|---|
| 413 |
|
|---|
| 414 |
# Under win64, symbols for function names lack the underscore prefix |
|---|
| 415 |
# present on win32. Also the STDCALL calling convention is not used. |
|---|
| 416 |
!IFDEF WIN64 |
|---|
| 417 |
!UNDEF STDCALL |
|---|
| 418 |
!ELSE |
|---|
| 419 |
SYM_PREFIX=_ |
|---|
| 420 |
!ENDIF |
|---|
| 421 |
|
|---|
| 422 |
EXTERNAL_LIBS = $(OGDILIB) $(XERCES_LIB) $(EXPAT_LIB) $(OCI_LIB) $(PG_LIB) $(ODBCLIB) \ |
|---|
| 423 |
$(ECW_LIB_LINK) $(HDF4_LIB_LINK) $(FME_LIB) $(JASPER_LIB) $(MRSID_LIB_LINK) \ |
|---|
| 424 |
$(FITS_LIB_LINK) $(JPEG_LIB) $(PNG_LIB) $(NETCDF_LIB_LINK) $(PROJ4_LIB) \ |
|---|
| 425 |
$(GEOTIFF_LIB) $(TIFF_LIB) $(PROJ_LIBRARY) $(SQLITE_LIB) \ |
|---|
| 426 |
$(MYSQL_LIB) $(GEOS_LIB) $(HDF5_LIB_LINK) $(SDE_LIB) $(DWG_LIB) \ |
|---|
| 427 |
$(IDB_LIB) $(CURL_LIB) $(DODS_LIB) $(ADD_LIBS) |
|---|
| 428 |
|
|---|
| 429 |
.c.obj: |
|---|
| 430 |
$(CC) $(CFLAGS) /c $*.c |
|---|
| 431 |
|
|---|
| 432 |
.cpp.obj: |
|---|
| 433 |
$(CC) $(CFLAGS) /c $*.cpp |
|---|
| 434 |
|
|---|