forked from osm2pgsql-dev/osm2pgsql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
63 lines (43 loc) · 2.29 KB
/
Makefile.am
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
ACLOCAL_AMFLAGS = -I m4
DIST_SUBDIRS = legacy gazetteer
SUBDIRS = $(GAZETTEER_SUBDIR)
bin_PROGRAMS = osm2pgsql
osm2pgsql_SOURCES = build_geometry.cpp input.c middle.h middle-ram.h output-gazetteer.h output-pgsql.c rb.c sanitizer.h text-tree.h build_geometry.h input.h middle-pgsql.c osm2pgsql.c output.h output-pgsql.h rb.h sprompt.c UTF8sanitizer.c expire-tiles.c keyvals.c middle-pgsql.h osmtypes.h output-null.c parse-primitive.c parse-primitive.h parse-xml2.c parse-xml2.h pgsql.c reprojection.c sprompt.h expire-tiles.h keyvals.h middle-ram.c output-gazetteer.c output-null.h pgsql.h reprojection.h text-tree.c
if READER_PBF
osm2pgsql_SOURCES += parse-pbf.c parse-pbf.h fileformat.pb-c.c fileformat.pb-c.h osmformat.pb-c.c osmformat.pb-c.h
fileformat.pb-c.c: protobuf/fileformat.proto
$(AM_V_GEN) $(PROTOC_C) --proto_path=protobuf --c_out=. $<
fileformat.pb-c.h: fileformat.pb-c.c
@if test ! -f $@; then \
rm -f $<; \
$(MAKE) $(AM_MAKEFLAGS) $<; \
else :; fi
osmformat.pb-c.c: protobuf/osmformat.proto
$(AM_V_GEN) $(PROTOC_C) --proto_path=protobuf --c_out=. $<
osmformat.pb-c.h: osmformat.pb-c.c
@if test ! -f $@; then \
rm -f $<; \
$(MAKE) $(AM_MAKEFLAGS) $<; \
else :; fi
BUILT_SOURCES = \
fileformat.pb-c.c fileformat.pb-c.h \
osmformat.pb-c.c osmformat.pb-c.h
endif
AM_CFLAGS = @PTHREAD_CFLAGS@ @POSTGRESQL_CFLAGS@ @XML2_CFLAGS@ @BZIP2_CFLAGS@ @GEOS_CFLAGS@ @PROJ_CFLAGS@ @PROTOBUF_C_CFLAGS@ -DOSM2PGSQL_DATADIR='"$(datadir)"' -DVERSION='"@PACKAGE_VERSION@"'
AM_CPPFLAGS = @PTHREAD_CFLAGS@ @POSTGRESQL_CFLAGS@ @XML2_CFLAGS@ @BZIP2_CFLAGS@ @GEOS_CFLAGS@ @PROJ_CFLAGS@ -DOSM2PGSQL_DATADIR='"$(datadir)"'
AM_LDFLAGS = @PTHREAD_CFLAGS@ @POSTGRESQL_LDFLAGS@ @XML2_LDFLAGS@ @BZIP2_LDFLAGS@ @GEOS_LDFLAGS@ @GEOS_LIBS@ @PROJ_LDFLAGS@ @PROTOBUF_C_LDFLAGS@
osm2pgsqldir = $(datadir)/osm2pgsql
osm2pgsql_DATA = default.style 900913.sql
man1_MANS = debian/osm2pgsql.1
EXTRA_DIST = osm2pgsql.spec.in \
osm2pgsql.spec \
protobuf/fileformat.proto \
protobuf/osmformat.proto \
debian \
$(osm2pgsql_DATA)
$(PACKAGE).spec: $(PACKAGE).spec.in
sed -e "s/@""PACKAGE""@/$(PACKAGE)/g; s/@""VERSION""@/$(VERSION)/g; s/@""SVN""@/`svnversion`/g;" $^ > $@
rpm: dist-gzip
rpmbuild -ta $(distdir).tar.gz
distclean-local:
@rm -f $(PACKAGE).spec