1CC=gcc 2CFLAGS= -g -Wall -std=c99 3CPP=g++ 4CPPFLAGS= -g3 -Wall -lpthread 5 6PINYINIME_DICTBUILDER=pinyinime_dictbuilder 7 8LIBRARY_SRC= \ 9 ../share/dictbuilder.cpp \ 10 ../share/dictlist.cpp \ 11 ../share/dicttrie.cpp \ 12 ../share/lpicache.cpp \ 13 ../share/mystdlib.cpp \ 14 ../share/ngram.cpp \ 15 ../share/searchutility.cpp \ 16 ../share/spellingtable.cpp \ 17 ../share/spellingtrie.cpp \ 18 ../share/splparser.cpp \ 19 ../share/utf16char.cpp \ 20 ../share/utf16reader.cpp \ 21 22all: engine 23 24engine: $(PINYINIME_DICTBUILDER) 25 26$(PINYINIME_DICTBUILDER): $(LIBRARY_SRC) pinyinime_dictbuilder.cpp 27 @$(CPP) $(CPPFLAGS) -o $@ $? 28 29 30clean: 31 -rm -rf $(PINYINIME_DICTBUILDER) 32 33.PHONY: clean 34