PAR=-Wno-deprecated -fpermissive -static PAR2=-c -Wno-deprecated -fpermissive LIB_PATH=../lib COMMON_PATH=../common CMDLINE_FILE='"../kor/cmdline.h"' kor: main.cc corr.o corlist.o cmdline.o word.o auttools.o cmdline.c common_cor.o common.o g++ $(PAR) -D _CMDLINE_FILE=$(CMDLINE_FILE) 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.h cmdline.h g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) corr.cc corlist.o: corlist.cc corlist.h cmdline.h g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) corlist.cc common.o: cmdline.h $(COMMON_PATH)/cmdline_common.ggo cmdline_common g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) $(COMMON_PATH)/common.cc common_cor.o: cmdline.h common_cor.cc common_cor.h g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) 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 include $(COMMON_PATH)/common.mk include $(LIB_PATH)/lib.mk