help
Rev | Line | |
---|
[25ae32e] | 1 | PAR=-Wno-deprecated -m32 -fpermissive |
---|
| 2 | # -static |
---|
| 3 | PAR2=-c -Wno-deprecated -m32 -fpermissive |
---|
| 4 | LIB_PATH=../lib |
---|
| 5 | COMMON_PATH=../common |
---|
| 6 | CMDLINE_FILE='"../cor/cmdline.h"' |
---|
| 7 | |
---|
| 8 | |
---|
| 9 | cor: main.cc corr.o $(LIB_PATH)/word.o \ |
---|
| 10 | $(LIB_PATH)/auttools.o cmdline.c common_cor.o common.o |
---|
| 11 | g++ $(PAR) main.cc corr.o common.o \ |
---|
| 12 | $(LIB_PATH)/word.o $(LIB_PATH)/auttools.o cmdline.c common_cor.o \ |
---|
| 13 | -o cor |
---|
| 14 | |
---|
| 15 | corr.o: corr.cc corr.hh |
---|
| 16 | g++ $(PAR2) corr.cc |
---|
| 17 | |
---|
| 18 | common.o: $(COMMON_PATH)/cmdline_common.ggo $(COMMON_PATH)/common.cc \ |
---|
| 19 | $(COMMON_PATH)/common.h |
---|
| 20 | g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) $(COMMON_PATH)/common.cc |
---|
| 21 | |
---|
| 22 | common_cor.o: cmdline.h common_cor.cc common_cor.h |
---|
| 23 | g++ $(PAR2) common_cor.cc |
---|
| 24 | |
---|
| 25 | cmdline.c cmdline.h: cmdline.ggo |
---|
| 26 | gengetopt -i cmdline.ggo --conf-parser |
---|
| 27 | |
---|
| 28 | cmdline.ggo: cmdline_cor.ggo ../common/cmdline_common.ggo |
---|
| 29 | cat cmdline_cor.ggo ../common/cmdline_common.ggo > cmdline.ggo |
---|
| 30 | |
---|
| 31 | copy: |
---|
| 32 | ifdef UTT_BIN_DIR |
---|
| 33 | cp cor ${UTT_BIN_DIR} |
---|
| 34 | endif |
---|
| 35 | |
---|
| 36 | clean: clean.cmdline |
---|
| 37 | rm *.o || true |
---|
| 38 | rm cor || true |
---|
| 39 | |
---|
| 40 | clean.cmdline: |
---|
| 41 | rm cmdline.* || true |
---|
| 42 | |
---|
Note: See
TracBrowser
for help on using the repository browser.