| 1 |
|
|---|
| 2 |
# Location to install .exe, .dll and python stuff |
|---|
| 3 |
|
|---|
| 4 |
BINDIR = D:\bin |
|---|
| 5 |
PY_INST_DIR = D:\bin\pymod |
|---|
| 6 |
LIBDIR = D:\bin\lib |
|---|
| 7 |
INCDIR = D:\bin\include |
|---|
| 8 |
DATADIR = D:\bin\data |
|---|
| 9 |
|
|---|
| 10 |
# Set this to the installed directory containing python. If you don't |
|---|
| 11 |
# have python just let it point to a directory that does not exist (as now). |
|---|
| 12 |
PYDIR = D:\Software\Python22 |
|---|
| 13 |
|
|---|
| 14 |
# Uncomment the first for an optimized build or the second for a debug build. |
|---|
| 15 |
OPTFLAGS= /nologo /Ox /MD |
|---|
| 16 |
#OPTFLAGS= /nologo /Zi /Fd$(GDAL_ROOT)\gdal.pdb |
|---|
| 17 |
|
|---|
| 18 |
# Version number embedded in DLL name. |
|---|
| 19 |
VERSION = 11 |
|---|
| 20 |
|
|---|
| 21 |
# Uncomment the following to link OGR utilities against main GDAL DLL |
|---|
| 22 |
# instead of statically linking against OGR libraries. |
|---|
| 23 |
DLLBUILD=1 |
|---|
| 24 |
|
|---|
| 25 |
# Enable all OGR formats, or only raster formats? Comment out to disable |
|---|
| 26 |
# vector formats. |
|---|
| 27 |
INCLUDE_OGR_FRMTS = YES |
|---|
| 28 |
|
|---|
| 29 |
# Location of Visual C++ directory (only required for following SETARGV stuff) |
|---|
| 30 |
VCDIR = D:\Software\VStudio\VC98 |
|---|
| 31 |
|
|---|
| 32 |
# Enable the following if VCDIR set properly, and you want the utility |
|---|
| 33 |
# programs to be able to expand wildcards. |
|---|
| 34 |
#SETARGV = "$(VCDIR)\lib\setargv.obj" |
|---|
| 35 |
|
|---|
| 36 |
# Comment out the following to disable JPEG support. |
|---|
| 37 |
JPEG_SUPPORTED = 1 |
|---|
| 38 |
#if using an external jpeg library uncomment the follwing lines |
|---|
| 39 |
#JPEG_EXTERNAL_LIB = 1 |
|---|
| 40 |
#JPEGDIR = c:/projects/jpeg-6b |
|---|
| 41 |
#JPEG_LIB = $(JPEGDIR)/libjpeg.lib |
|---|
| 42 |
|
|---|
| 43 |
#if using an external png library uncomment the follwing lines |
|---|
| 44 |
#PNG_EXTERNAL_LIB = 1 |
|---|
| 45 |
#PNGDIR = c:/projects/libpng-1.0.8 |
|---|
| 46 |
#PNG_LIB = $(PNGDIR)/libpng.lib |
|---|
| 47 |
|
|---|
| 48 |
# Uncomment the following and update to enable ECW support. |
|---|
| 49 |
#ECWDIR = D:\Software\ECW_SDK |
|---|
| 50 |
#ECWLIB = $(ECWDIR)\lib\NCSEcw.lib $(ECWDIR)\lib\NCSEcwC.lib \ |
|---|
| 51 |
# $(ECWDIR)\lib\NCSUtil.lib |
|---|
| 52 |
|
|---|
| 53 |
# Uncomment the following and update to enable OGDI support. |
|---|
| 54 |
#OGDIDIR = D:\warmerda\iii\devdir |
|---|
| 55 |
#OGDIVER = 31 |
|---|
| 56 |
#OGDILIB = $(OGDIDIR)\lib\$(TARGET)\ogdi$(OGDIVER).lib \ |
|---|
| 57 |
# $(OGDIDIR)\lib\$(TARGET)\zlib_ogdi$(OGDIVER).lib |
|---|
| 58 |
|
|---|
| 59 |
# Uncomment for Xerces based GML support. |
|---|
| 60 |
#XERCES_DIR = d:\warmerda\iii\drivers\gml\xerces-c1_7_0-win32 |
|---|
| 61 |
#XERCES_INCLUDE = -I$(XERCES_DIR)/include -I$(XERCES_DIR)/include/xercesc |
|---|
| 62 |
#XERCES_LIB = $(XERCES_DIR)/lib/xerces-c_1.lib |
|---|
| 63 |
|
|---|
| 64 |
# Uncomment for JasPer based JPEG2000 support |
|---|
| 65 |
#JASPER_DIR = d:\projects\jasper-1.700.2.uuid |
|---|
| 66 |
#JASPER_INCLUDE = -I$(JASPER_DIR)\src\libjasper\include -DJAS_WIN_MSVC_BUILD |
|---|
| 67 |
#JASPER_LIB = $(JASPER_DIR)\src\msvc\Win32_Release\libjasper.lib |
|---|
| 68 |
|
|---|
| 69 |
# Uncommment if you have Frank's modified Kakadu build. |
|---|
| 70 |
#KAKDIR = D:\warmerda\jp2\kakadu |
|---|
| 71 |
|
|---|
| 72 |
# Uncomment the following and update to enable NCSA HDF Release 4 support. |
|---|
| 73 |
#HDF4_DIR = D:\warmerda\HDF41r5 |
|---|
| 74 |
#HDF4_LIB = /LIBPATH:$(HDF4_DIR)\lib |
|---|
| 75 |
|
|---|
| 76 |
# Uncomment the following for MrSID support. |
|---|
| 77 |
# You will likely require /MD and /EHsc in OPTFLAGS. |
|---|
| 78 |
# |
|---|
| 79 |
#MRSID_DIR = C:\Software\MrSID |
|---|
| 80 |
#MRSID_LIB = /LIBPATH:$(MRSID_DIR)\bin\lib_md \ |
|---|
| 81 |
# MrSIDDecode_md.lib lt_xTrans_md.lib advapi32.lib user32.lib |
|---|
| 82 |
|
|---|
| 83 |
# Uncomment the following and update to enable FME support. |
|---|
| 84 |
#FME_DIR = d:\Software\fme |
|---|
| 85 |
|
|---|
| 86 |
!IFDEF ORACLE_HOME |
|---|
| 87 |
OCI_LIB = $(ORACLE_HOME)\oci\lib\msvc\ociw32.lib \ |
|---|
| 88 |
$(ORACLE_HOME)\oci\lib\msvc\oci.lib |
|---|
| 89 |
!ENDIF |
|---|
| 90 |
|
|---|
| 91 |
########### END OF STUFF THAT NORMALLY NEEDS TO BE UPDATED ################## |
|---|
| 92 |
|
|---|
| 93 |
|
|---|
| 94 |
# Location of MS Data Access SDK (not really needed anymore I think) |
|---|
| 95 |
#MSDASDK = D:\Software\MDAC_2.6 |
|---|
| 96 |
|
|---|
| 97 |
GDAL_DLL = gdal$(VERSION).dll |
|---|
| 98 |
|
|---|
| 99 |
INC = -I$(GDAL_ROOT)\port -I$(GDAL_ROOT)\ogr -I$(GDAL_ROOT)\gcore |
|---|
| 100 |
|
|---|
| 101 |
#LINKER_FLAGS = /NODEFAULTLIB:LIBC |
|---|
| 102 |
|
|---|
| 103 |
CFLAGS = $(OPTFLAGS) $(INC) $(EXTRAFLAGS) |
|---|
| 104 |
MAKE = nmake /nologo |
|---|
| 105 |
|
|---|
| 106 |
CC = cl |
|---|
| 107 |
|
|---|
| 108 |
CPLLIB = $(GDAL_ROOT)/port/cpl.lib |
|---|
| 109 |
GDALLIB = $(GDAL_ROOT)/gdal.lib |
|---|
| 110 |
|
|---|
| 111 |
.c.obj: |
|---|
| 112 |
$(CC) $(CFLAGS) /c $*.c |
|---|
| 113 |
|
|---|
| 114 |
.cpp.obj: |
|---|
| 115 |
$(CC) $(CFLAGS) /c $*.cpp |
|---|
| 116 |
|
|---|
| 117 |
|
|---|