# Location to install .exe, .dll and python stuff BINDIR = D:\bin PY_INST_DIR = D:\bin\pymod LIBDIR = D:\bin\lib INCDIR = D:\bin\include DATADIR = D:\bin\data # Set this to the installed directory containing python. If you don't # have python just let it point to a directory that does not exist (as now). PYDIR = D:\Software\Python22 # Uncomment the first for an optimized build or the second for a debug build. OPTFLAGS= /nologo /Ox /MD #OPTFLAGS= /nologo /Zi /Fd$(GDAL_ROOT)\gdal.pdb # Version number embedded in DLL name. VERSION = 11 # Uncomment the following to link OGR utilities against main GDAL DLL # instead of statically linking against OGR libraries. DLLBUILD=1 # Enable all OGR formats, or only raster formats? Comment out to disable # vector formats. INCLUDE_OGR_FRMTS = YES # Location of Visual C++ directory (only required for following SETARGV stuff) VCDIR = D:\Software\VStudio\VC98 # Enable the following if VCDIR set properly, and you want the utility # programs to be able to expand wildcards. #SETARGV = "$(VCDIR)\lib\setargv.obj" # Comment out the following to disable JPEG support. JPEG_SUPPORTED = 1 #if using an external jpeg library uncomment the follwing lines #JPEG_EXTERNAL_LIB = 1 #JPEGDIR = c:/projects/jpeg-6b #JPEG_LIB = $(JPEGDIR)/libjpeg.lib #if using an external png library uncomment the follwing lines #PNG_EXTERNAL_LIB = 1 #PNGDIR = c:/projects/libpng-1.0.8 #PNG_LIB = $(PNGDIR)/libpng.lib # Uncomment the following and update to enable ECW support. #ECWDIR = D:\Software\ECW_SDK #ECWLIB = $(ECWDIR)\lib\NCSEcw.lib $(ECWDIR)\lib\NCSEcwC.lib \ # $(ECWDIR)\lib\NCSUtil.lib # Uncomment the following and update to enable OGDI support. #OGDIDIR = D:\warmerda\iii\devdir #OGDIVER = 31 #OGDILIB = $(OGDIDIR)\lib\$(TARGET)\ogdi$(OGDIVER).lib \ # $(OGDIDIR)\lib\$(TARGET)\zlib_ogdi$(OGDIVER).lib # Uncomment for Xerces based GML support. #XERCES_DIR = d:\warmerda\iii\drivers\gml\xerces-c1_7_0-win32 #XERCES_INCLUDE = -I$(XERCES_DIR)/include -I$(XERCES_DIR)/include/xercesc #XERCES_LIB = $(XERCES_DIR)/lib/xerces-c_1.lib # Uncomment for JasPer based JPEG2000 support #JASPER_DIR = d:\projects\jasper-1.700.2.uuid #JASPER_INCLUDE = -I$(JASPER_DIR)\src\libjasper\include -DJAS_WIN_MSVC_BUILD #JASPER_LIB = $(JASPER_DIR)\src\msvc\Win32_Release\libjasper.lib # Uncommment if you have Frank's modified Kakadu build. #KAKDIR = D:\warmerda\jp2\kakadu # Uncomment the following and update to enable NCSA HDF Release 4 support. #HDF4_DIR = D:\warmerda\HDF41r5 #HDF4_LIB = /LIBPATH:$(HDF4_DIR)\lib # Uncomment the following for MrSID support. # You will likely require /MD and /EHsc in OPTFLAGS. # #MRSID_DIR = C:\Software\MrSID #MRSID_LIB = /LIBPATH:$(MRSID_DIR)\bin\lib_md \ # MrSIDDecode_md.lib lt_xTrans_md.lib advapi32.lib user32.lib # Uncomment the following and update to enable FME support. #FME_DIR = d:\Software\fme !IFDEF ORACLE_HOME OCI_LIB = $(ORACLE_HOME)\oci\lib\msvc\ociw32.lib \ $(ORACLE_HOME)\oci\lib\msvc\oci.lib !ENDIF ########### END OF STUFF THAT NORMALLY NEEDS TO BE UPDATED ################## # Location of MS Data Access SDK (not really needed anymore I think) #MSDASDK = D:\Software\MDAC_2.6 GDAL_DLL = gdal$(VERSION).dll INC = -I$(GDAL_ROOT)\port -I$(GDAL_ROOT)\ogr -I$(GDAL_ROOT)\gcore #LINKER_FLAGS = /NODEFAULTLIB:LIBC CFLAGS = $(OPTFLAGS) $(INC) $(EXTRAFLAGS) MAKE = nmake /nologo CC = cl CPLLIB = $(GDAL_ROOT)/port/cpl.lib GDALLIB = $(GDAL_ROOT)/gdal.lib .c.obj: $(CC) $(CFLAGS) /c $*.c .cpp.obj: $(CC) $(CFLAGS) /c $*.cpp