]> git.openstreetmap.org Git - nominatim.git/commitdiff
add makefile for test scene extractor
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 21 Feb 2015 13:10:27 +0000 (14:10 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 21 Feb 2015 13:11:05 +0000 (14:11 +0100)
.gitignore
tests/scenes/bin/Makefile [new file with mode: 0644]

index 54af2ad328a3a163d6106e65fd7df86ba659dde1..a13320648766586b8e3b8050fa1d4582437b2bb6 100644 (file)
@@ -16,6 +16,7 @@ autom4te.cache/
 config.*
 configure
 Makefile
+!tests/scenes/bin/Makefile
 Makefile.in
 stamp-h1
 missing
diff --git a/tests/scenes/bin/Makefile b/tests/scenes/bin/Makefile
new file mode 100644 (file)
index 0000000..46b1875
--- /dev/null
@@ -0,0 +1,26 @@
+CXXFLAGS += -O3
+#CXXFLAGS += -g
+CXXFLAGS += -std=c++11 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
+CXXFLAGS += -I../../../libosmium/include
+
+OS:=$(shell uname -s)
+ifeq ($(OS),Darwin)
+CXXFLAGS += -stdlib=libc++
+LDFLAGS += -stdlib=libc++
+endif
+
+CXXFLAGS_WARNINGS := -Wall -Wextra -pedantic -Wredundant-decls -Wdisabled-optimization -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wold-style-cast
+
+LIB_EXPAT := -lexpat
+LIB_PBF := -pthread -lz -lprotobuf-lite -losmpbf
+LIB_GZIP := -lz
+LIB_BZIP2 := -lbz2
+
+LIB_IO := $(LIB_EXPAT) $(LIB_PBF) $(LIB_GZIP) $(LIB_BZIP2)
+
+all:
+
+osm2wkt: osm2wkt.cc
+       $(CXX) $(CXXFLAGS) $(CXXFLAGS_WARNINGS) -o $@ $< $(LDFLAGS) $(LIB_IO)
+
+scenarios: osm2wkt