diff options
author | Jochen Topf <jochen@topf.org> | 2011-04-13 23:26:31 +0200 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2011-04-13 23:26:31 +0200 |
commit | 299c93e809186178583af5bd572e755027c3a87b (patch) | |
tree | f452d1efdb6ca19fa092d8e20f732faf60340fad /tagstats/Makefile | |
parent | d64ea936c4ac4a6c877dfce1e6a2fa71a42e0950 (diff) | |
download | taginfo-299c93e809186178583af5bd572e755027c3a87b.tar taginfo-299c93e809186178583af5bd572e755027c3a87b.tar.gz |
Moved tagstats over from osmium repository
Diffstat (limited to 'tagstats/Makefile')
-rw-r--r-- | tagstats/Makefile | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/tagstats/Makefile b/tagstats/Makefile new file mode 100644 index 0000000..bee23c9 --- /dev/null +++ b/tagstats/Makefile @@ -0,0 +1,41 @@ +#------------------------------------------------------------------------------ +# +# Tagstats Makefile +# +#------------------------------------------------------------------------------ + +CXX = g++ + +CXXFLAGS = -g +#CXXFLAGS = -O3 + +CXXFLAGS += -std=c++0x -Wall -W -Wredundant-decls -Wdisabled-optimization -pedantic +#CXXFLAGS += -Wpadded -Winline + +CXXFLAGS += -DTAGSTATS_COUNT_USERS +CXXFLAGS += -DTAGSTATS_COUNT_KEY_COMBINATIONS + +CXXFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 + +CXXFLAGS += -I../include -I../../../osmium/osmium/include + +LDFLAGS = -L/usr/local/lib -lexpat -lpthread + +LIB_SQLITE = -lsqlite3 +LIB_GD = -lgd -lz -lm +LIB_PROTOBUF = -lz -lprotobuf -losmpbf + +.PHONY: all clean install + +all: tagstats + +tagstats: tagstats.cpp tagstats_handler.hpp string_store.hpp + $(CXX) $(CXXFLAGS) -o $@ $< $(LDFLAGS) $(LIB_PROTOBUF) $(LIB_GD) $(LIB_SQLITE) + +install: + install -m 755 -g root -o root -d $(DESTDIR)/usr/bin + install -m 755 -g root -o root tagstats $(DESTDIR)/usr/bin/tagstats + +clean: + rm -f *.o core tagstats + |