forked from pgRouting/osm2pgrouting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (17 loc) · 741 Bytes
/
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
CC = g++
CFLAGS = -ggdb3 -D_FILE_OFFSET_BITS=64
OBJ = bin/Export2DB.o bin/math_functions.o bin/Node.o bin/Tag.o bin/OSMDocumentParserCallback.o bin/Way.o bin/OSMDocument.o bin/Type.o bin/Class.o bin/Configuration.o bin/ConfigurationParserCallback.o bin/Relation.o bin/XMLParser.o
INC_DIRS = -I./ -Isrc -I/usr/include/pgsql -I/usr/include/postgresql -I/usr/local/pgsql/include
LIB_DIRS = -L/usr/local/pgsql/lib -L/usr/local/lib/pgsql
LIBS = -lexpat -lpq
MAIN = src/osm2pgrouting.cpp
osm2pgrouting : bin $(OBJ) $(MAIN)
$(CC) $(CFLAGS) $(MAIN) $(OBJ) $(INC_DIRS) $(LIB_DIRS) $(LIBS) -o bin/$@
ln -sf bin/$@ $@
bin:
mkdir -p bin
bin/%.o : src/%.cpp
$(CC) -o $@ $(INC_DIRS) $(CFLAGS) -c $<
clean:
rm -rf bin
rm -f osm2pgrouting