Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 60 lines (42 sloc) 1.704 kb
9c73496 @joto split up code into different directories, new makefiles
authored
1 #------------------------------------------------------------------------------
2 #
3 # Osmium osmjs makefile
4 #
5 #------------------------------------------------------------------------------
6
7 CXX = g++
8
9 CXXFLAGS = -g
10 #CXXFLAGS = -O3
11
395c0ac @joto Make osmjs compilable without -std=c++0x
authored
12 CXXFLAGS += -Wall -Wextra -Wredundant-decls -Wdisabled-optimization -pedantic
9c73496 @joto split up code into different directories, new makefiles
authored
13 #CXXFLAGS += -Wpadded -Winline
14
15 # uncomment this if you want information on how long it took to build the multipolygons
82d069d @joto All macros start with OSMIUM_
authored
16 #CXXFLAGS += -DOSMIUM_WITH_MULTIPOLYGON_PROFILING
9c73496 @joto split up code into different directories, new makefiles
authored
17
18 CXXFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
82d069d @joto All macros start with OSMIUM_
authored
19 CXXFLAGS += -DOSMIUM_WITH_GEOS $(shell geos-config --cflags)
20 CXXFLAGS += -DOSMIUM_WITH_SHPLIB
21 CXXFLAGS += -DOSMIUM_WITH_JAVASCRIPT
9c73496 @joto split up code into different directories, new makefiles
authored
22
c74e770 @joto Add OSMIUM_V8_FORCE_GC macro to force garbage collection.
authored
23 # Add this to force V8 garbage collection after each object/node/way/relation callback.
24 # Use only to find memory leaks. It will make osmjs really slow.
25 #CXXFLAGS += -DOSMIUM_V8_FORCE_GC
26
7586c1e @joto Switched license. Removed build of PBF stuff.
authored
27 CXXFLAGS += -I../include
9c73496 @joto split up code into different directories, new makefiles
authored
28
29 LDFLAGS = -L/usr/local/lib -lexpat -lpthread
30 LDFLAGS += $(shell geos-config --libs)
31
ed37dbc @joto Added code for proper UTF-8 to UTF-16 conversion when putting strings…
authored
32 LIB_V8 = -lv8 -licuuc
9c73496 @joto split up code into different directories, new makefiles
authored
33 LIB_SHAPE = -lshp
1c40b6e @joto Use libprotobuf-lite instead of libprotobuf
authored
34 LIB_PROTOBUF = -lz -lprotobuf-lite -losmpbf
9c73496 @joto split up code into different directories, new makefiles
authored
35
7586c1e @joto Switched license. Removed build of PBF stuff.
authored
36 .PHONY: all clean install
9c73496 @joto split up code into different directories, new makefiles
authored
37
7586c1e @joto Switched license. Removed build of PBF stuff.
authored
38 all: osmjs
9c73496 @joto split up code into different directories, new makefiles
authored
39
ebbbc63 @joto Removed JavascriptTemplate.cpp for the price of an ugly include mess.…
authored
40 osmjs: osmjs.cpp
7586c1e @joto Switched license. Removed build of PBF stuff.
authored
41 $(CXX) $(CXXFLAGS) -o $@ $< $(LDFLAGS) $(LIB_PROTOBUF) $(LIB_V8) $(LIB_SHAPE)
99314e4 @joto moved js dir into osmjs; added make install target
authored
42
43 install:
7586c1e @joto Switched license. Removed build of PBF stuff.
authored
44 install -m 755 -g root -o root -d $(DESTDIR)/usr/bin
99314e4 @joto moved js dir into osmjs; added make install target
authored
45 install -m 755 -g root -o root osmjs $(DESTDIR)/usr/bin/osmjs
46 install -m 755 -g root -o root -d $(DESTDIR)/usr/share/osmjs
47 install -m 644 -g root -o root js/osm2shape.js $(DESTDIR)/usr/share/osmjs/osm2shape.js
7a36023 @joto Improved debian packages
authored
48 install -m 755 -g root -o root -d $(DESTDIR)/usr/share/doc/osmjs
49 install -m 644 -g root -o root README $(DESTDIR)/usr/share/doc/osmjs/README
9c73496 @joto split up code into different directories, new makefiles
authored
50
51 clean:
8ce1b9e @joto Remove core files in clean target in Makefiles
authored
52 rm -f *.o core osmjs
9c73496 @joto split up code into different directories, new makefiles
authored
53
7a36023 @joto Improved debian packages
authored
54 deb:
55 debuild -I -us -uc
56
57 deb-clean:
58 debuild clean
59
Something went wrong with that request. Please try again.