root/tags/gdal_1_1_6/GDALmake.opt.in

Revision 2873, 3.1 kB (checked in by warmerda, 7 years ago)

added Xerces options

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 CC      =       @CC@
2 CXX     =       @CXX@
3 INSTALL =       $(GDAL_ROOT)/install-sh -c
4 INSTALL_DIR =   $(GDAL_ROOT)/install-sh -d
5
6 CXX_OPTFLAGS =  @CXXFLAGS@
7 C_OPTFLAGS =    @CFLAGS@
8 CXX_DBGFLAGS =  -g -DDEBUG
9 C_DBGFLAGS =    -g -DDEBUG
10
11 LIBS    =       @LIBS@ -lm
12
13 PYTHON_INCLUDES = @PYTHON_INCLUDES@
14 PYTHON = @PYTHON@
15 NUMPY_FLAG = @NUMPY_FLAG@
16
17 HAVE_OGDI = @HAVE_OGDI@
18 OGR_ENABLED = @OGR_ENABLED@
19
20 prefix          =       @prefix@
21 exec_prefix     =       @exec_prefix@
22 INST_PREFIX     =       @exec_prefix@
23 INST_INCLUDE    =       @exec_prefix@/include
24 INST_DATA       =       @exec_prefix@/share/gdal
25 INST_LIB        =       @libdir@
26 INST_BIN        =       @bindir@
27 INST_PYMOD      =       @pymoddir@
28
29 #
30 #       Whether we use debug flags, or optimization is determined by
31 #       the CFG environment variable.  Set to debug for debug builds.
32 #       This is similar to the OGDI builds.
33 #
34 ifeq ($(CFG),debug)
35 C_ODFLAGS       = $(C_DBGFLAGS)
36 CXX_ODFLAGS     = $(CXX_DBGFLAGS)
37 endif
38
39 ifeq ($(CFG),gprof)
40 C_ODFLAGS =     -pg
41 CXX_ODFLAGS =   -pg
42 LNK_FLAGS =     -pg
43 LIBS            := $(filter-out -ldbmalloc,$(LIBS))
44 endif
45
46 ifeq ($(CFG),)
47 C_ODFLAGS =     $(C_OPTFLAGS)
48 CXX_ODFLAGS =   $(CXX_OPTFLAGS)
49 LIBS            := $(filter-out -ldbmalloc,$(LIBS))
50 endif
51
52 CFLAGS          = @C_WFLAGS@ @C_PIC@ $(C_ODFLAGS) @EXTRA_INCLUDES@ @CPPFLAGS@
53 CXXFLAGS        = @CXX_WFLAGS@ @CXX_PIC@ $(CXX_ODFLAGS) \
54                   @EXTRA_INCLUDES@ @CPPFLAGS@
55
56 RANLIB          =       @RANLIB@
57 SO_EXT          =       @SO_EXT@
58 LD_SHARED       =       @LD_SHARED@
59 EXE             =       @EXE_EXT@
60
61 ifeq ($(notdir $(LD_SHARED)),true)
62 HAVE_LD_SHARED  =       no
63 else
64 HAVE_LD_SHARED  =       yes
65 endif
66
67 GDAL_INCLUDE    =       -I$(GDAL_ROOT) -I$(GDAL_ROOT)/port -I$(GDAL_ROOT)/core\
68                         -I$(GDAL_ROOT)/ogr
69
70 GDAL_VER        =       1.1
71 GDAL_LIB        =       $(GDAL_ROOT)/gdal.a
72 GDAL_SLIB       =       $(GDAL_ROOT)/libgdal.$(GDAL_VER).$(SO_EXT)
73 GDAL_SLIB_LINK  =       -L$(GDAL_ROOT) -lgdal.$(GDAL_VER)
74
75 OGR_LIB         =       $(GDAL_ROOT)/ogr/ogr.a
76 CPL_LIB         =       $(GDAL_ROOT)/port/cpl.a
77 OGRFRMTS_LIB    =       $(GDAL_ROOT)/ogr/ogrsf_frmts/ogrsf_frmts.a
78
79 #
80 # OGR/PostgreSQL support.
81 #
82 HAVE_OGR_PG     = @HAVE_PG@
83 PG_LIB  =       @PG_LIB@
84 PG_INC  =       @PG_INC@
85
86 #
87 # Xerces C++ XML Parser for GML.
88 #
89 HAVE_XERCES    = @HAVE_XERCES@
90 XERCES_INCLUDE  =       @XERCES_INCLUDE@
91
92 OGDI_INCLUDE    =       @OGDI_INCLUDE@
93
94
95 PNG_SETTING     =       @PNG_SETTING@
96 JPEG_SETTING    =       @JPEG_SETTING@
97 TIFF_SETTING    =       @TIFF_SETTING@
98 GEOTIFF_SETTING =       @GEOTIFF_SETTING@
99 GIF_SETTING     =       @GIF_SETTING@
100 FITS_SETTING    =       @FITS_SETTING@
101 OGDI_SETTING    =       @HAVE_OGDI@
102
103 GDAL_LIBS       =       $(GDAL_LIB) $(OGR_LIB) \
104                         $(GDAL_LIB) $(CPL_LIB)
105 GDAL_OBJ        =       $(GDAL_ROOT)/frmts/o/*.o \
106                         $(GDAL_ROOT)/core/*.o \
107                         $(GDAL_ROOT)/port/*.o \
108                         $(GDAL_ROOT)/alg/*.o \
109                         $(GDAL_ROOT)/ogr/ogrct.o \
110                         $(GDAL_ROOT)/ogr/ogr_opt.o \
111                         $(GDAL_ROOT)/ogr/ogr_fromepsg.o \
112                         $(GDAL_ROOT)/ogr/ogr_srs_validate.o \
113                         $(GDAL_ROOT)/ogr/ogrutils.o \
114                         $(GDAL_ROOT)/ogr/ogr_srs_proj4.o
115
116 ifeq ($(OGR_ENABLED),yes)
117 GDAL_LIBS := $(OGRFRMTS_LIB) $(PG_LIB) $(GDAL_LIBS)
118
119 GDAL_OBJ := $(GDAL_OBJ) $(GDAL_ROOT)/ogr/ogrsf_frmts/generic/ogrregisterall.o \
120                 $(GDAL_ROOT)/ogr/ogrfeaturestyle.o
121 endif
122
123 #
124 #       Note these codes have to exactly match the format directory names,
125 #       and their uppercase form should be the format portion of the
126 #       format registration entry point.  eg. gdb -> GDALRegister_GDB().
127 #
128 GDAL_FORMATS =  gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 bsb \
129                 sdts raw dted mem jdem envisat elas fit vrt usgsdem \
130                 @OPT_GDAL_FORMATS@
131
Note: See TracBrowser for help on using the browser.