summaryrefslogtreecommitdiff
path: root/tagstats/Makefile
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2015-03-23 17:48:55 +0100
committerJochen Topf <jochen@topf.org>2015-04-28 21:55:12 +0200
commitc8a334b10512a708d19ed5fd42aa60424290a371 (patch)
treebeabdda90200e1d6629285def16674b4c5553b90 /tagstats/Makefile
parentde091284afa48851da7de95f544e75d6800d4e8a (diff)
downloadtaginfo-c8a334b10512a708d19ed5fd42aa60424290a371.tar
taginfo-c8a334b10512a708d19ed5fd42aa60424290a371.tar.gz
Some experimental code to find unicode properties in keys.
OSM allows nearly all unicode characters in keys and values. This is some experimental code to find keys that contain unusual characters. Currently this is not run or used in the normal setup, but I thought I'd throw it out there in case somebody wants to play with it. I am not sure yet myself where this is going.
Diffstat (limited to 'tagstats/Makefile')
-rw-r--r--tagstats/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/tagstats/Makefile b/tagstats/Makefile
index b266fe9..220ce56 100644
--- a/tagstats/Makefile
+++ b/tagstats/Makefile
@@ -40,10 +40,13 @@ LIB_EXPAT := -lexpat
LIB_PBF := -pthread -lz -lprotobuf-lite -losmpbf
LIB_GD := -lgd -lz -lm
LIB_SQLITE := -lsqlite3
+LIB_ICU := `pkg-config --libs icu-uc icu-io`
+
+CXXFLAGS_ICU := `pkg-config --cflags icu-uc icu-io`
.PHONY: all check indent install clean
-all: tagstats osmstats similarity
+all: tagstats osmstats similarity taginfo_unicode
osmstats: osmstats.cpp statistics_handler.hpp
$(CXX) $(CXXFLAGS) $(CXXFLAGS_WARNINGS) -o $@ $< $(LDFLAGS) $(LIB_EXPAT) $(LIB_PBF) $(LIB_SQLITE)
@@ -54,6 +57,9 @@ tagstats: tagstats.cpp tagstats_handler.hpp statistics_handler.hpp string_store.
similarity: similarity.cpp sqlite.hpp
$(CXX) $(CXXFLAGS) $(CXXFLAGS_WARNINGS) $(CXXFLAGS_FEATURES) -o $@ $< $(LDFLAGS) $(LIB_SQLITE)
+taginfo_unicode: taginfo_unicode.cpp sqlite.hpp
+ $(CXX) $(CXXFLAGS) $(CXXFLAGS_WARNINGS) $(CXXFLAGS_FEATURES) $(CXXFLAGS_ICU) -o $@ $< $(LDFLAGS) $(LIB_SQLITE) $(LIB_ICU)
+
check:
cppcheck --enable=all tagstats.cpp osmstats.cpp