PAR=-Wno-deprecated -m32 -fpermissive # -static PAR2=-c -Wno-deprecated -m32 -fpermissive LIB_PATH=../lib COMMON_PATH=../common CMDLINE_FILE='"../cor/cmdline.h"' cor: main.cc corr.o $(LIB_PATH)/word.o \ $(LIB_PATH)/auttools.o cmdline.c common_cor.o common.o g++ $(PAR) -D _CMDLINE_FILE=$(CMDLINE_FILE) main.cc corr.o common.o \ $(LIB_PATH)/word.o $(LIB_PATH)/auttools.o cmdline.c common_cor.o \ -o cor corr.o: corr.cc corr.hh g++ $(PAR2) corr.cc common.o: $(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) -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 cor ${UTT_BIN_DIR} endif clean: clean.cmdline rm *.o || true rm cor || true clean.cmdline: rm cmdline.* || true