Home | History | Annotate | Download | only in command
      1 CC=gcc
      2 CFLAGS= -g -Wall -std=c99
      3 CPP=g++
      4 CPPFLAGS= -g3 -Wall -lpthread
      5 
      6 PINYINIME_DICTBUILDER=pinyinime_dictbuilder
      7 
      8 LIBRARY_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 
     22 all: engine
     23 
     24 engine: $(PINYINIME_DICTBUILDER)
     25 
     26 $(PINYINIME_DICTBUILDER): $(LIBRARY_SRC) pinyinime_dictbuilder.cpp
     27 	@$(CPP) $(CPPFLAGS) -o $@ $?
     28 
     29 
     30 clean:
     31 	-rm -rf $(PINYINIME_DICTBUILDER)
     32 
     33 .PHONY: clean
     34