source: subversion/applications/utils/export/osm2pgsql/Makefile @ 3210

Last change on this file since 3210 was 2827, checked in by jonb, 13 years ago

osm2pgsql - make experimental version current, move previous implementation to legacy

File size: 890 bytes
Line 
1CFLAGS += -O2 -Wall -Wextra -Wsign-compare -Wpointer-sign
2CFLAGS += $(shell xml2-config --cflags)
3CFLAGS += $(shell geos-config --cflags)
4CFLAGS += -I$(shell pg_config --includedir)
5
6CXXFLAGS += -O2 -Wall -DGEOS_INLINE
7
8LDFLAGS += $(shell xml2-config --libs) 
9LDFLAGS += $(shell geos-config --libs)
10LDFLAGS += -L$(shell pg_config --libdir) -lpq
11LDFLAGS += -lbz2
12LDFLAGS += -lproj
13
14SRCS:=$(wildcard *.c) $(wildcard *.cpp)
15OBJS:=$(SRCS:.c=.o)
16OBJS:=$(OBJS:.cpp=.o)
17DEPS:=$(SRCS:.c=.d)
18DEPS:=$(DEPS:.cpp=.d)
19
20APPS:=osm2pgsql
21
22.PHONY: all clean
23
24all: $(APPS)
25
26clean: 
27        rm -f  $(APPS) $(OBJS) $(DEPS)
28
29%.d: %.c
30        @set -e; rm -f $@; \
31        $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
32        sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
33        rm -f $@.$$$$
34
35-include $(DEPS)
36       
37osm2pgsql: osm2pgsql.o build_geometry.o middle-pgsql.o keyvals.o output-pgsql.o middle-ram.o input.o UTF8sanitizer.o reprojection.o
38
Note: See TracBrowser for help on using the repository browser.