File: Makefile.in

package info (click to toggle)
libgdal-grass 3.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 368 kB
  • sloc: cpp: 1,704; makefile: 100
file content (44 lines) | stat: -rw-r--r-- 1,021 bytes parent folder | download | duplicates (3)
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
CC	=	@CC@
CXX	=	@CXX@
LD	=	@CXX@

CPPFLAGS = -DUSE_CPL -DGRASS_GISBASE=\"@GRASS_GISBASE@\" \
	  @GDAL_INC@ @GRASS_INCLUDE@ @PQ_INCLUDE@ @CPPFLAGS@
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 $(AUTOLOAD_DIR)
	cp $(GLIBNAME) $(AUTOLOAD_DIR)
	cp $(OLIBNAME) $(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,/usr/lib/grass78/lib

$(OLIBNAME):	ogrgrassdriver.o ogrgrassdatasource.o ogrgrasslayer.o
	$(LD_SHARED) $(LDFLAGS) ogrgrassdriver.o ogrgrassdatasource.o ogrgrasslayer.o $(LIBS) -o $(OLIBNAME) -Wl,-rpath,/usr/lib/grass78/lib

%.o:	%.cpp
	$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<