forked from OSGeo/gdal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGNUmakefile
36 lines (26 loc) · 982 Bytes
/
GNUmakefile
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
GDAL_ROOT = ..
include ../GDALmake.opt
OBJ = gdalopeninfo.o gdaldrivermanager.o gdaldriver.o gdaldataset.o \
gdalrasterband.o gdal_misc.o rasterio.o gdalrasterblock.o \
gdalcolortable.o gdalmajorobject.o overview.o \
gdaldefaultoverviews.o gdalpamdataset.o gdalpamrasterband.o \
gdaljp2metadata.o gdaljp2box.o gdalmultidomainmetadata.o \
gdal_rat.o
# Enable the following if you want to use MITAB's code to convert
# .tab coordinate systems into well known text. But beware that linking
# against static libraries becomes more complicated because of the odd
# call out.
ifeq ($(OGR_ENABLED),yes)
CXXFLAGS := -DHAVE_MITAB $(CXXFLAGS)
endif
CPPFLAGS := $(GDAL_INCLUDE) $(CPPFLAGS)
default: $(OBJ)
clean:
$(RM) *.o
docs:
(cd ..; $(MAKE) docs)
gdaldrivermanager.o: gdaldrivermanager.cpp ../GDALmake.opt
$(CXX) -c $(GDAL_INCLUDE) $(CXXFLAGS) -DINST_DATA=\"$(INST_DATA)\" \
$*.cpp -o $*.o
install:
for f in *.h ; do $(INSTALL_DATA) $$f $(INST_INCLUDE) ; done