help
Line | |
---|
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='"../kor/cmdline.h"' |
---|
7 | |
---|
8 | |
---|
9 | kor: main.cc corr.o corlist.o cmdline.o $(LIB_PATH)/word.o \ |
---|
10 | $(LIB_PATH)/auttools.o cmdline.c common_cor.o common.o |
---|
11 | g++ $(PAR) main.cc corlist.o corr.o common.o \ |
---|
12 | $(LIB_PATH)/word.o $(LIB_PATH)/auttools.o cmdline.c common_cor.o \ |
---|
13 | -o kor |
---|
14 | |
---|
15 | corr.o: corr.cc corr.hh cmdline.h |
---|
16 | g++ $(PAR2) corr.cc |
---|
17 | |
---|
18 | corlist.o: corlist.cc corlist.h cmdline.h |
---|
19 | g++ $(PAR2) corlist.cc |
---|
20 | |
---|
21 | |
---|
22 | |
---|
23 | common.o: cmdline.h $(COMMON_PATH)/cmdline_common.ggo $(COMMON_PATH)/common.cc \ |
---|
24 | $(COMMON_PATH)/common.h |
---|
25 | g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) $(COMMON_PATH)/common.cc |
---|
26 | |
---|
27 | common_cor.o: cmdline.h common_cor.cc common_cor.h |
---|
28 | g++ $(PAR2) common_cor.cc |
---|
29 | |
---|
30 | cmdline.c cmdline.h: cmdline.ggo |
---|
31 | gengetopt -i cmdline.ggo --conf-parser |
---|
32 | |
---|
33 | cmdline.ggo: cmdline_cor.ggo $(COMMON_PATH)/cmdline_common.ggo |
---|
34 | cat cmdline_cor.ggo $(COMMON_PATH)/cmdline_common.ggo > cmdline.ggo |
---|
35 | |
---|
36 | copy: |
---|
37 | ifdef UTT_BIN_DIR |
---|
38 | cp kor ${UTT_BIN_DIR} |
---|
39 | endif |
---|
40 | |
---|
41 | clean: clean.cmdline |
---|
42 | rm *.o || true |
---|
43 | rm kor || true |
---|
44 | |
---|
45 | clean.cmdline: |
---|
46 | rm cmdline.* || true |
---|
47 | |
---|
Note: See
TracBrowser
for help on using the repository browser.