source: subversion/applications/utils/export/osm2pgsql/Makefile.am @ 26588

Last change on this file since 26588 was 26237, checked in by mazdermind, 8 years ago

fix default.style location, fixes #3457

File size: 2.4 KB
Line 
1ACLOCAL_AMFLAGS = -I m4
2
3DIST_SUBDIRS = legacy gazetteer
4SUBDIRS = $(GAZETTEER_SUBDIR)
5
6bin_PROGRAMS = osm2pgsql
7
8osm2pgsql_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
9
10
11if READER_PBF
12osm2pgsql_SOURCES += parse-pbf.c parse-pbf.h fileformat.pb-c.c fileformat.pb-c.h osmformat.pb-c.c osmformat.pb-c.h
13
14fileformat.pb-c.c: protobuf/fileformat.proto
15         $(AM_V_GEN) $(PROTOC_C) --proto_path=protobuf --c_out=. $<
16
17fileformat.pb-c.h: fileformat.pb-c.c
18        @if test ! -f $@; then \
19          rm -f $<; \
20          $(MAKE) $(AM_MAKEFLAGS) $<; \
21        else :; fi
22
23osmformat.pb-c.c: protobuf/osmformat.proto
24         $(AM_V_GEN) $(PROTOC_C) --proto_path=protobuf --c_out=. $<
25
26osmformat.pb-c.h: osmformat.pb-c.c
27        @if test ! -f $@; then \
28          rm -f $<; \
29          $(MAKE) $(AM_MAKEFLAGS) $<; \
30        else :; fi
31
32BUILT_SOURCES = \
33  fileformat.pb-c.c fileformat.pb-c.h \
34  osmformat.pb-c.c osmformat.pb-c.h
35
36endif
37
38osm2pgsqldir = $(datadir)/osm2pgsql
39
40AM_CFLAGS = @PTHREAD_CFLAGS@ @POSTGRESQL_CFLAGS@ @XML2_CFLAGS@ @BZIP2_CFLAGS@  @GEOS_CFLAGS@ @PROJ_CFLAGS@  @PROTOBUF_C_CFLAGS@ -DOSM2PGSQL_DATADIR='"$(osm2pgsqldir)"' -DVERSION='"@PACKAGE_VERSION@"'
41AM_CPPFLAGS = @PTHREAD_CFLAGS@ @POSTGRESQL_CFLAGS@ @XML2_CFLAGS@ @BZIP2_CFLAGS@  @GEOS_CFLAGS@ @PROJ_CFLAGS@ -DOSM2PGSQL_DATADIR='"$(osm2pgsqldir)"' -Igeos-fallback
42
43AM_LDFLAGS = @PTHREAD_CFLAGS@ @ZLIB_LDFLAGS@ @ZLIB_LIBS@ @POSTGRESQL_LDFLAGS@ @POSTGRESQL_LIBS@ @XML2_LDFLAGS@ @BZIP2_LDFLAGS@ @BZIP2_LIBS@ @GEOS_LDFLAGS@ @GEOS_LIBS@ @PROJ_LDFLAGS@ @PROJ_LIBS@ @PROTOBUF_C_LDFLAGS@ @PROTOBUF_C_LIBS@
44
45osm2pgsql_DATA = default.style 900913.sql
46
47man1_MANS = debian/osm2pgsql.1
48
49EXTRA_DIST = osm2pgsql.spec.in \
50             osm2pgsql.spec \
51             protobuf/fileformat.proto \
52             protobuf/osmformat.proto \
53             debian \
54             $(osm2pgsql_DATA)
55
56$(PACKAGE).spec: $(PACKAGE).spec.in
57        sed -e "s/@""PACKAGE""@/$(PACKAGE)/g; s/@""VERSION""@/$(VERSION)/g; s/@""SVN""@/`svnversion`/g;" $^ > $@
58
59rpm: dist-gzip
60        rpmbuild -ta $(distdir).tar.gz
61
62distclean-local:
63        @rm -f $(PACKAGE).spec
64        @rm -f config.nice
Note: See TracBrowser for help on using the repository browser.