From 822ca14480062cae21d4b8d6af21e018629f2918 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sat, 21 Feb 2015 14:10:27 +0100 Subject: [PATCH] add makefile for test scene extractor --- .gitignore | 1 + tests/scenes/bin/Makefile | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 tests/scenes/bin/Makefile diff --git a/.gitignore b/.gitignore index 54af2ad3..a1332064 100644 --- a/.gitignore +++ b/.gitignore @@ -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 index 00000000..46b18756 --- /dev/null +++ b/tests/scenes/bin/Makefile @@ -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 -- 2.39.5