forked from OSGeo/gdal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGDALmake.opt.in
123 lines (100 loc) · 2.84 KB
/
GDALmake.opt.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
CC = @CC@
CXX = @CXX@
INSTALL = install
CXX_OPTFLAGS = @CXXFLAGS@
C_OPTFLAGS = @CFLAGS@
CXX_DBGFLAGS = -g -DDEBUG
C_DBGFLAGS = -g -DDEBUG
LIBS = @LIBS@ -lm
PYTHON_INCLUDES = @PYTHON_INCLUDES@
PYTHON = @PYTHON@
NUMPY_FLAG = @NUMPY_FLAG@
HAVE_OGDI = @HAVE_OGDI@
OGR_ENABLED = @OGR_ENABLED@
prefix = @prefix@
exec_prefix = @exec_prefix@
INST_PREFIX = @exec_prefix@
INST_INCLUDE = @exec_prefix@/include
INST_DATA = @exec_prefix@/share/gdal
INST_LIB = @libdir@
INST_BIN = @bindir@
INST_PYMOD = @pyexecdir@
#
# Whether we use debug flags, or optimization is determined by
# the CFG environment variable. Set to debug for debug builds.
# This is similar to the OGDI builds.
#
ifeq ($(CFG),debug)
C_ODFLAGS = $(C_DBGFLAGS)
CXX_ODFLAGS = $(CXX_DBGFLAGS)
endif
ifeq ($(CFG),gprof)
C_ODFLAGS = -pg
CXX_ODFLAGS = -pg
LNK_FLAGS = -pg
LIBS := $(filter-out -ldbmalloc,$(LIBS))
endif
ifeq ($(CFG),)
C_ODFLAGS = $(C_OPTFLAGS)
CXX_ODFLAGS = $(CXX_OPTFLAGS)
LIBS := $(filter-out -ldbmalloc,$(LIBS))
endif
CFLAGS = @C_WFLAGS@ @C_PIC@ $(C_ODFLAGS)
CXXFLAGS = @CXX_WFLAGS@ @CXX_PIC@ $(CXX_ODFLAGS)
LD_SHARED = @LD_SHARED@
GDAL_INCLUDE = -I$(GDAL_ROOT) -I$(GDAL_ROOT)/port -I$(GDAL_ROOT)/core\
-I$(GDAL_ROOT)/ogr @EXTRA_INCLUDES@
GDAL_VER = 1.1
GDAL_LIB = $(GDAL_ROOT)/gdal.a
GDAL_SLIB = $(GDAL_ROOT)/libgdal.$(GDAL_VER).so
GDAL_SLIB_LINK = -L$(GDAL_ROOT) -lgdal.$(GDAL_VER)
OGR_LIB = $(GDAL_ROOT)/ogr/ogr.a
CPL_LIB = $(GDAL_ROOT)/port/cpl.a
OGRFRMTS_LIB = $(GDAL_ROOT)/ogr/ogrsf_frmts/ogrsf_frmts.a
#
# OGDI Parameters
#
ifeq ($(HAVE_OGDI),yes)
OGDI_LIBS = @OGDI_LIBS@
OGDI_INCLUDE = @OGDI_INCLUDE@
OGDI_FLAG = ENABLED
OGDI_FRMT = ogdi
endif
#
# OGR/PostgreSQL support.
#
HAVE_OGR_PG = no
ifeq ($(HAVE_OGR_PG),yes)
PG_HOME = /usr/local/pgsql
PG_LIB = -L$(PG_HOME)/lib -lpq
PG_INC = -I$(PG_HOME)/include
endif
PNG_SETTING = @PNG_SETTING@
JPEG_SETTING = @JPEG_SETTING@
TIFF_SETTING = @TIFF_SETTING@
GEOTIFF_SETTING = @GEOTIFF_SETTING@
GIF_SETTING = @GIF_SETTING@
FITS_SETTING = @FITS_SETTING@
GDAL_LIBS = $(GDAL_LIB) $(OGR_LIB) \
$(GDAL_LIB) $(CPL_LIB) $(OGDI_LIBS)
GDAL_OBJ = $(GDAL_ROOT)/frmts/o/*.o \
$(GDAL_ROOT)/core/*.o \
$(GDAL_ROOT)/alg/*.o \
$(GDAL_ROOT)/ogr/ogrct.o \
$(GDAL_ROOT)/ogr/ogr_opt.o \
$(GDAL_ROOT)/ogr/ogr_fromepsg.o \
$(GDAL_ROOT)/ogr/ogrutils.o \
$(GDAL_ROOT)/ogr/ogr_srs_proj4.o
ifeq ($(OGR_ENABLED),yes)
GDAL_LIBS := $(OGRFRMTS_LIB) $(PG_LIB) $(GDAL_LIBS)
GDAL_OBJ := $(GDAL_OBJ) $(GDAL_ROOT)/ogr/ogrsf_frmts/generic/ogrregisterall.o \
$(GDAL_ROOT)/ogr/ogrfeaturestyle.o
endif
#
# Note these codes have to exactly match the format directory names,
# and their uppercase form should be the format portion of the
# format registration entry point. eg. gdb -> GDALRegister_GDB().
#
GDAL_FORMATS = gxf gtiff hfa $(OGDI_FRMT) aigrid aaigrid ceos ceos2 iso8211 \
sdts raw dted mem jdem envisat elas \
@OPT_GDAL_FORMATS@