forked from MaZderMind/osm-history-splitter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (30 loc) · 1.18 KB
/
Makefile
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
#------------------------------------------------------------------------------
#
# osm history splitter makefile
#
#------------------------------------------------------------------------------
CXX = g++
CXXFLAGS = -g -O3 -Wall -Wextra -pedantic
CXXFLAGS += `getconf LFS_CFLAGS`
#CXXFLAGS += -Wredundant-decls -Wdisabled-optimization
#CXXFLAGS += -Wpadded -Winline
# compile & link against libxml to have xml writing support
CXXFLAGS += -DOSMIUM_WITH_OUTPUT_OSM_XML
CXXFLAGS += `xml2-config --cflags`
LDFLAGS = -L/usr/local/lib -lexpat -lpthread
LDFLAGS += `xml2-config --libs`
# compile & link against libs needed for protobuf reading and writing
LDFLAGS += -lz -lprotobuf-lite -losmpbf
# compile & link against geos for multipolygon extracts
CXXFLAGS += `geos-config --cflags`
CXXFLAGS += -DOSMIUM_WITH_GEOS
LDFLAGS += `geos-config --libs`
.PHONY: all clean install
all: osm-history-splitter
osm-history-splitter: splitter.cpp hardcut.hpp softcut.hpp
$(CXX) $(CXXFLAGS) -o $@ $< $(LDFLAGS)
install:
install -m 755 -g root -o root -d $(DESTDIR)/usr/bin
install -m 755 -g root -o root osm-history-splitter $(DESTDIR)/usr/bin/osm-history-splitter
clean:
rm -f *.o core osm-history-splitter