-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile.in
44 lines (30 loc) · 1.04 KB
/
Makefile.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
CC = @CC@
CXX = @CXX@
LD = @CXX@
CPPFLAGS = -DUSE_CPL -DGRASS_GISBASE=\"@GRASS_GISBASE@\" \
@GDAL_INC@ @GRASS_INCLUDE@ @PQ_INCLUDE@ @CPPFLAGS@
CXXFLAGS = @CXXFLAGS@ @CXX_WFLAGS@ @CXX_PIC@
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
RANLIB = @RANLIB@
SO_EXT = @SO_EXT@
LD_SHARED = @LD_SHARED@
LIBS = @LIBS@
AUTOLOAD_DIR = @AUTOLOAD_DIR@
GLIBNAME = gdal_GRASS.so
OLIBNAME = ogr_GRASS.so
default: $(GLIBNAME) $(OLIBNAME)
install: default
install -d $(DESTDIR)$(AUTOLOAD_DIR)
cp $(GLIBNAME) $(DESTDIR)$(AUTOLOAD_DIR)
cp $(OLIBNAME) $(DESTDIR)$(AUTOLOAD_DIR)
clean:
rm -f $(OLIBNAME) $(GLIBNAME) *.o
distclean: clean
rm -fr Makefile config.status config.log autom*.cache
$(GLIBNAME): grass.o
$(LD_SHARED) $(LDFLAGS) grass.o $(LIBS) -o $(GLIBNAME) -Wl,-rpath,"@GRASS_GISBASE@/lib"
$(OLIBNAME): ogrgrassdriver.o ogrgrassdatasource.o ogrgrasslayer.o
$(LD_SHARED) $(LDFLAGS) ogrgrassdriver.o ogrgrassdatasource.o ogrgrasslayer.o $(LIBS) -o $(OLIBNAME) -Wl,-rpath,"@GRASS_GISBASE@/lib"
%.o: %.cpp
$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<