| 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 |
|
|---|
| 9 |
# Set this to the installed directory containing python. If you don't |
|---|
| 10 |
# have python just let it point to a directory that does not exist (as now). |
|---|
| 11 |
PYDIR = D:\Software\Python22 |
|---|
| 12 |
|
|---|
| 13 |
# Uncomment the first for an optimized build or the second for a debug build. |
|---|
| 14 |
OPTFLAGS= /nologo /Ox |
|---|
| 15 |
#OPTFLAGS= /nologo /Zi /Fd$(GDAL_ROOT)\gdal.pdb |
|---|
| 16 |
|
|---|
| 17 |
# Version number embedded in DLL name. |
|---|
| 18 |
VERSION = 11 |
|---|
| 19 |
|
|---|
| 20 |
# Uncomment the following to link OGR utilities against main GDAL DLL |
|---|
| 21 |
# instead of statically linking against OGR libraries. |
|---|
| 22 |
DLLBUILD=1 |
|---|
| 23 |
|
|---|
| 24 |
# Enable all OGR formats, or only raster formats? Comment out to disable |
|---|
| 25 |
# vector formats. |
|---|
| 26 |
INCLUDE_OGR_FRMTS = YES |
|---|
| 27 |
|
|---|
| 28 |
# Location of Visual C++ directory (only required for following SETARGV stuff) |
|---|
| 29 |
VCDIR = D:\Software\VStudio\VC98 |
|---|
| 30 |
|
|---|
| 31 |
# Enable the following if VCDIR set properly, and you want the utility |
|---|
| 32 |
# programs to be able to expand wildcards. |
|---|
| 33 |
#SETARGV = $(VCDIR)\lib\setargv.obj |
|---|
| 34 |
|
|---|
| 35 |
# Comment out the following to disable JPEG support. |
|---|
| 36 |
JPEG_SUPPORTED = 1 |
|---|
| 37 |
|
|---|
| 38 |
# Uncomment the following and update to enable ECW support. |
|---|
| 39 |
#ECWDIR = D:\Software\ECW_SDK |
|---|
| 40 |
#ECWLIB = $(ECWDIR)\lib\NCSEcw.lib $(ECWDIR)\lib\NCSEcwC.lib \ |
|---|
| 41 |
# $(ECWDIR)\lib\NCSUtil.lib |
|---|
| 42 |
|
|---|
| 43 |
# Uncomment the following and update to enable OGDI support. |
|---|
| 44 |
#OGDIDIR = D:\warmerda\iii\devdir |
|---|
| 45 |
#OGDIVER = 31 |
|---|
| 46 |
#OGDILIB = $(OGDIDIR)\lib\$(TARGET)\ogdi$(OGDIVER).lib \ |
|---|
| 47 |
# $(OGDIDIR)\lib\$(TARGET)\zlib_ogdi$(OGDIVER).lib |
|---|
| 48 |
|
|---|
| 49 |
# Uncomment for Xerces based GML support. |
|---|
| 50 |
#XERCES_DIR = d:\warmerda\iii\drivers\gml\xerces-c1_7_0-win32 |
|---|
| 51 |
#XERCES_INCLUDE = -I$(XERCES_DIR)/include -I$(XERCES_DIR)/include/xercesc |
|---|
| 52 |
#XERCES_LIB = $(XERCES_DIR)/lib/xerces-c_1.lib |
|---|
| 53 |
|
|---|
| 54 |
# Uncomment for JPEG2000 support |
|---|
| 55 |
#JASPER_DIR = S:\projects_libs\jasper-1.500.4 |
|---|
| 56 |
#JASPER_INCLUDE = -I$(JASPER_DIR)\src\libjasper\include\jasper |
|---|
| 57 |
#JASPER_LIB = $(JASPER_DIR)src\msvc\Win32_Release\libjasper.lib |
|---|
| 58 |
|
|---|
| 59 |
# Uncommment if you have Frank's modified Kakadu build. |
|---|
| 60 |
#KAKDIR = D:\warmerda\jp2\kakadu |
|---|
| 61 |
|
|---|
| 62 |
# Uncomment the following and update to enable NCSA HDF Release 4 support. |
|---|
| 63 |
#HDF4_DIR = D:\warmerda\HDF41r5 |
|---|
| 64 |
#HDF4_LIB = /LIBPATH:$(HDF4_DIR)\lib |
|---|
| 65 |
|
|---|
| 66 |
# Uncomment the following and update to enable FME support. |
|---|
| 67 |
#FME_DIR = d:\Software\fme |
|---|
| 68 |
|
|---|
| 69 |
########### END OF STUFF THAT NORMALLY NEEDS TO BE UPDATED ################## |
|---|
| 70 |
|
|---|
| 71 |
|
|---|
| 72 |
# Location of MS Data Access SDK (not really needed anymore I think) |
|---|
| 73 |
#MSDASDK = D:\Software\MDAC_2.6 |
|---|
| 74 |
|
|---|
| 75 |
GDAL_DLL = gdal$(VERSION).dll |
|---|
| 76 |
|
|---|
| 77 |
INC = -I$(GDAL_ROOT)\port -I$(GDAL_ROOT)\ogr -I$(GDAL_ROOT)\core |
|---|
| 78 |
|
|---|
| 79 |
#LINKER_FLAGS = /NODEFAULTLIB:LIBC |
|---|
| 80 |
|
|---|
| 81 |
CFLAGS = $(OPTFLAGS) $(INC) $(EXTRAFLAGS) |
|---|
| 82 |
MAKE = nmake /nologo |
|---|
| 83 |
|
|---|
| 84 |
CC = cl |
|---|
| 85 |
|
|---|
| 86 |
CPLLIB = $(GDAL_ROOT)/port/cpl.lib |
|---|
| 87 |
GDALLIB = $(GDAL_ROOT)/gdal.lib |
|---|
| 88 |
|
|---|
| 89 |
.c.obj: |
|---|
| 90 |
$(CC) $(CFLAGS) /c $*.c |
|---|
| 91 |
|
|---|
| 92 |
.cpp.obj: |
|---|
| 93 |
$(CC) $(CFLAGS) /c $*.cpp |
|---|
| 94 |
|
|---|
| 95 |
|
|---|