| 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:\GDALBuild" |
|---|
| 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 = "D:\Program Files\Python22" |
|---|
| 17 |
|
|---|
| 18 |
# Uncomment the first for an optimized build or the second for a debug build. |
|---|
| 19 |
OPTFLAGS= /nologo /Ox /MD |
|---|
| 20 |
#OPTFLAGS= /nologo /Zi /Fd$(GDAL_ROOT)\gdal.pdb |
|---|
| 21 |
|
|---|
| 22 |
# Version number embedded in DLL name. |
|---|
| 23 |
VERSION = 12 |
|---|
| 24 |
|
|---|
| 25 |
# Uncomment the following to link OGR utilities against main GDAL DLL |
|---|
| 26 |
# instead of statically linking against OGR libraries. |
|---|
| 27 |
DLLBUILD=1 |
|---|
| 28 |
|
|---|
| 29 |
# Enable all OGR formats, or only raster formats? Comment out to disable |
|---|
| 30 |
# vector formats. |
|---|
| 31 |
INCLUDE_OGR_FRMTS = YES |
|---|
| 32 |
|
|---|
| 33 |
# Location of Visual C++ directory (only required for following SETARGV stuff) |
|---|
| 34 |
VCDIR = D:\Software\VStudio\VC98 |
|---|
| 35 |
|
|---|
| 36 |
# Enable the following if VCDIR set properly, and you want the utility |
|---|
| 37 |
# programs to be able to expand wildcards. |
|---|
| 38 |
#SETARGV = "$(VCDIR)\lib\setargv.obj" |
|---|
| 39 |
|
|---|
| 40 |
# Comment out the following to disable BSB support. |
|---|
| 41 |
BSB_SUPPORTED = 1 |
|---|
| 42 |
|
|---|
| 43 |
# Comment out the following to disable ODBC support. |
|---|
| 44 |
ODBC_SUPPORTED = 1 |
|---|
| 45 |
|
|---|
| 46 |
# Comment out the following to disable JPEG support. |
|---|
| 47 |
JPEG_SUPPORTED = 1 |
|---|
| 48 |
|
|---|
| 49 |
#if using an external jpeg library uncomment the follwing lines |
|---|
| 50 |
#JPEG_EXTERNAL_LIB = 1 |
|---|
| 51 |
#JPEGDIR = c:/projects/jpeg-6b |
|---|
| 52 |
#JPEG_LIB = $(JPEGDIR)/libjpeg.lib |
|---|
| 53 |
|
|---|
| 54 |
#if using an external png library uncomment the follwing lines |
|---|
| 55 |
#PNG_EXTERNAL_LIB = 1 |
|---|
| 56 |
#PNGDIR = c:/projects/libpng-1.0.8 |
|---|
| 57 |
#PNG_LIB = $(PNGDIR)/libpng.lib |
|---|
| 58 |
|
|---|
| 59 |
# if using an external libtiff library |
|---|
| 60 |
#TIFF_INC = -Ic:/warmerda/libtiff/libtiff |
|---|
| 61 |
#TIFF_LIB = c:/warmerda/libtiff/libtiff/libtiff_i.lib |
|---|
| 62 |
|
|---|
| 63 |
# if using an external libgeotiff library |
|---|
| 64 |
#GEOTIFF_INC = -Ic:/warmerda/libgeotiff -Ic:/warmerda/libgeotiff/libxtiff |
|---|
| 65 |
#GEOTIFF_LIB = C:/warmerda/libgeotiff/geotiff_i.lib |
|---|
| 66 |
|
|---|
| 67 |
# Uncomment the following and update to enable ECW support. |
|---|
| 68 |
#ECWDIR = D:\Software\ECW_SDK |
|---|
| 69 |
#ECWLIB = $(ECWDIR)\lib\NCSEcw.lib $(ECWDIR)\lib\NCSEcwC.lib \ |
|---|
| 70 |
# $(ECWDIR)\lib\NCSUtil.lib |
|---|
| 71 |
|
|---|
| 72 |
# Uncomment the following and update to enable OGDI support. |
|---|
| 73 |
#OGDIDIR = D:\warmerda\iii\devdir |
|---|
| 74 |
#OGDIVER = 31 |
|---|
| 75 |
#OGDILIB = $(OGDIDIR)\lib\$(TARGET)\ogdi$(OGDIVER).lib \ |
|---|
| 76 |
# $(OGDIDIR)\lib\$(TARGET)\zlib_ogdi$(OGDIVER).lib |
|---|
| 77 |
|
|---|
| 78 |
# Uncomment for Xerces based GML support. |
|---|
| 79 |
#XERCES_DIR = d:\warmerda\iii\drivers\gml\xerces-c1_7_0-win32 |
|---|
| 80 |
#XERCES_INCLUDE = -I$(XERCES_DIR)/include -I$(XERCES_DIR)/include/xercesc |
|---|
| 81 |
#XERCES_LIB = $(XERCES_DIR)/lib/xerces-c_1.lib |
|---|
| 82 |
|
|---|
| 83 |
# Uncomment for JasPer based JPEG2000 support |
|---|
| 84 |
#JASPER_DIR = d:\projects\jasper-1.700.2.uuid |
|---|
| 85 |
#JASPER_INCLUDE = -I$(JASPER_DIR)\src\libjasper\include -DJAS_WIN_MSVC_BUILD |
|---|
| 86 |
#JASPER_LIB = $(JASPER_DIR)\src\msvc\Win32_Release\libjasper.lib |
|---|
| 87 |
|
|---|
| 88 |
# Uncommment if you have Kakadu 4.0 or newer |
|---|
| 89 |
#KAKDIR = D:\warmerda\jp2\kakadu |
|---|
| 90 |
|
|---|
| 91 |
# Uncomment the following and update to enable NCSA HDF Release 4 support. |
|---|
| 92 |
#HDF4_DIR = D:\warmerda\HDF41r5 |
|---|
| 93 |
#HDF4_LIB = /LIBPATH:$(HDF4_DIR)\lib Ws2_32.lib |
|---|
| 94 |
|
|---|
| 95 |
# Uncomment the following for MrSID support. |
|---|
| 96 |
# You will likely require /MD and /EHsc in OPTFLAGS. |
|---|
| 97 |
#MRSID_DIR = d:\projects\mrsid |
|---|
| 98 |
#MRSID_INCLUDE = -I$(MRSID_DIR)\include |
|---|
| 99 |
#MRSID_LIB = /LIBPATH:$(MRSID_DIR)\lib \ |
|---|
| 100 |
# MrSIDDecode_md.lib lt_xTrans_md.lib advapi32.lib user32.lib |
|---|
| 101 |
# Uncomment, if you have DSDK version 3.1.x |
|---|
| 102 |
#MRSID_FLAGS = -DMRSID_DSDK_VERSION_31 |
|---|
| 103 |
# Uncomment, if you have DSDK version 3.2.x |
|---|
| 104 |
#MRSID_FLAGS = -DMRSID_DSDK_VERSION_32 |
|---|
| 105 |
# Following suitable for the MrSID DSDK version 4.0.x. |
|---|
| 106 |
#MRSID_INCLUDE = -I$(MRSID_DIR)\include\base -I$(MRSID_DIR)\include\support \ |
|---|
| 107 |
# -I$(MRSID_DIR)\include\metadata \ |
|---|
| 108 |
# -I$(MRSID_DIR)\include\mrsid_readers |
|---|
| 109 |
#MRSID_LIB = /LIBPATH:$(MRSID_DIR)\lib\Release_md \ |
|---|
| 110 |
# lti_dsdk.lib advapi32.lib user32.lib |
|---|
| 111 |
#MRSID_FLAGS = -DMRSID_DSDK_VERSION_40 |
|---|
| 112 |
|
|---|
| 113 |
# PostGIS Libraries |
|---|
| 114 |
#PG_INC_DIR = n:\pkg\libpq_win32\include |
|---|
| 115 |
#PG_LIB = n:\pkg\libpq_win32\lib\libpqdll.lib wsock32.lib |
|---|
| 116 |
|
|---|
| 117 |
# Uncomment the following and update to enable FME support. |
|---|
| 118 |
#FME_DIR = d:\Software\fme |
|---|
| 119 |
|
|---|
| 120 |
# Uncomment the following to enable FITS format support |
|---|
| 121 |
#FITS_DIR = "D:\Users\154712\My Documents\Visual Studio Projects\cfitsio" |
|---|
| 122 |
#FITS_LIB = $(FITS_DIR)\cfitsio.lib |
|---|
| 123 |
|
|---|
| 124 |
# Uncomment the following to enable NetCDF format. |
|---|
| 125 |
#NETCDF_SETTING=yes |
|---|
| 126 |
#NETCDF_LIB=C:\Software\netcdf\lib\netcdf.lib |
|---|
| 127 |
#NETCDF_INC_DIR=C:\Software\netcdf\include |
|---|
| 128 |
|
|---|
| 129 |
# PROJ.4 stuff |
|---|
| 130 |
# Uncomment the following lines to link PROJ.4 library statically. Otherwise |
|---|
| 131 |
# it will be linked dynamically during runtime. |
|---|
| 132 |
#PROJ_FLAGS = -DPROJ_STATIC |
|---|
| 133 |
#PROJ_INCLUDE = d:\projects\proj.4\src |
|---|
| 134 |
#PROJ_LIB = d:\projects\proj.4\src |
|---|
| 135 |
|
|---|
| 136 |
!IFDEF ORACLE_HOME |
|---|
| 137 |
OCI_LIB = $(ORACLE_HOME)\oci\lib\msvc\ociw32.lib \ |
|---|
| 138 |
$(ORACLE_HOME)\oci\lib\msvc\oci.lib |
|---|
| 139 |
!ENDIF |
|---|
| 140 |
|
|---|
| 141 |
# Any extra libraries needed on this platform? |
|---|
| 142 |
ADD_LIBS = |
|---|
| 143 |
|
|---|
| 144 |
# Comment out the following if you want to build with Python support, but |
|---|
| 145 |
# you don't have Numeric Python installed (with include files). Numeric |
|---|
| 146 |
# integration may not work. |
|---|
| 147 |
HAVE_NUMPY=1 |
|---|
| 148 |
|
|---|
| 149 |
########### END OF STUFF THAT NORMALLY NEEDS TO BE UPDATED ################## |
|---|
| 150 |
|
|---|
| 151 |
|
|---|
| 152 |
# Location of MS Data Access SDK (not really needed anymore I think) |
|---|
| 153 |
#MSDASDK = D:\Software\MDAC_2.6 |
|---|
| 154 |
|
|---|
| 155 |
GDAL_DLL = gdal$(VERSION).dll |
|---|
| 156 |
|
|---|
| 157 |
INC = -I$(GDAL_ROOT)\port -I$(GDAL_ROOT)\ogr -I$(GDAL_ROOT)\gcore |
|---|
| 158 |
|
|---|
| 159 |
#LINKER_FLAGS = /NODEFAULTLIB:LIBC |
|---|
| 160 |
|
|---|
| 161 |
CFLAGS = $(OPTFLAGS) $(INC) $(EXTRAFLAGS) |
|---|
| 162 |
MAKE = nmake /nologo |
|---|
| 163 |
|
|---|
| 164 |
CC = cl |
|---|
| 165 |
|
|---|
| 166 |
CPLLIB = $(GDAL_ROOT)/port/cpl.lib |
|---|
| 167 |
|
|---|
| 168 |
!IFDEF DLLBUILD |
|---|
| 169 |
GDALLIB = $(GDAL_ROOT)/gdal_i.lib |
|---|
| 170 |
!ELSE |
|---|
| 171 |
GDALLIB = $(GDAL_ROOT)/gdal.lib |
|---|
| 172 |
!ENDIF |
|---|
| 173 |
|
|---|
| 174 |
!IFDEF ODBC_SUPPORTED |
|---|
| 175 |
ODBCLIB = odbc32.lib |
|---|
| 176 |
!ENDIF |
|---|
| 177 |
|
|---|
| 178 |
EXTERNAL_LIBS = $(OGDILIB) $(XERCES_LIB) $(OCI_LIB) $(PG_LIB) $(ODBCLIB) \ |
|---|
| 179 |
$(ECWLIB) $(HDF4_LIB) $(FME_LIB) $(JASPER_LIB) $(MRSID_LIB) \ |
|---|
| 180 |
$(FITS_LIB) $(JPEG_LIB) $(PNG_LIB) $(NETCDF_LIB) $(PROJ4_LIB) \ |
|---|
| 181 |
$(GEOTIFF_LIB) $(TIFF_LIB) $(PROJ_LIB) $(ADD_LIBS) |
|---|
| 182 |
|
|---|
| 183 |
.c.obj: |
|---|
| 184 |
$(CC) $(CFLAGS) /c $*.c |
|---|
| 185 |
|
|---|
| 186 |
.cpp.obj: |
|---|
| 187 |
$(CC) $(CFLAGS) /c $*.cpp |
|---|
| 188 |
|
|---|
| 189 |
|
|---|
| 190 |
|
|---|
| 191 |
|
|---|
| 192 |
|
|---|
| 193 |
|
|---|
| 194 |
|
|---|
| 195 |
|
|---|
| 196 |
|
|---|
| 197 |
|
|---|
| 198 |
|
|---|
| 199 |
|
|---|
| 200 |
|
|---|