PAR=-Wno-deprecated -m32 -fpermissive # -static PAR2=-c -Wno-deprecated -m32 -fpermissive LIB_PATH=../lib COMMON_PATH=../common CMDLINE_FILE='"../kor/cmdline.h"' kor: main.cc corr.o corlist.o cmdline.o $(LIB_PATH)/word.o \ $(LIB_PATH)/auttools.o cmdline.c common_cor.o common.o g++ $(PAR) main.cc corlist.o corr.o common.o \ $(LIB_PATH)/word.o $(LIB_PATH)/auttools.o cmdline.c common_cor.o \ -o kor corr.o: corr.cc corr.hh cmdline.h g++ $(PAR2) corr.cc corlist.o: corlist.cc corlist.h cmdline.h g++ $(PAR2) corlist.cc common.o: cmdline.h $(COMMON_PATH)/cmdline_common.ggo $(COMMON_PATH)/common.cc \ $(COMMON_PATH)/common.h g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) $(COMMON_PATH)/common.cc common_cor.o: cmdline.h common_cor.cc common_cor.h g++ $(PAR2) common_cor.cc cmdline.c cmdline.h: cmdline.ggo gengetopt -i cmdline.ggo --conf-parser cmdline.ggo: cmdline_cor.ggo $(COMMON_PATH)/cmdline_common.ggo cat cmdline_cor.ggo $(COMMON_PATH)/cmdline_common.ggo > cmdline.ggo copy: ifdef UTT_BIN_DIR cp kor ${UTT_BIN_DIR} endif clean: clean.cmdline rm *.o || true rm kor || true clean.cmdline: rm cmdline.* || true