Last change
on this file since 1e121f4 was
1e121f4,
checked in by Adam Kędziora <s301614@…>, 14 years ago
|
Replacing old implementation with working implementation
|
-
Property mode set to
100755
|
File size:
1.2 KB
|
Line | |
---|
1 | PAR=-Wno-deprecated -fpermissive -static |
---|
2 | PAR2=-c -Wno-deprecated -fpermissive |
---|
3 | LIB_PATH=../lib |
---|
4 | COMMON_PATH=../common |
---|
5 | CMDLINE_FILE='"../kor/cmdline.h"' |
---|
6 | |
---|
7 | |
---|
8 | kor: main.cc corr.o corlist.o cmdline.o word.o auttools.o cmdline.c common_cor.o common.o |
---|
9 | g++ $(PAR) -D _CMDLINE_FILE=$(CMDLINE_FILE) main.cc corlist.o corr.o common.o \ |
---|
10 | $(LIB_PATH)/word.o $(LIB_PATH)/auttools.o cmdline.c common_cor.o \ |
---|
11 | -o kor |
---|
12 | |
---|
13 | corr.o: corr.cc corr.h cmdline.h |
---|
14 | g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) corr.cc |
---|
15 | |
---|
16 | corlist.o: corlist.cc corlist.h cmdline.h |
---|
17 | g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) corlist.cc |
---|
18 | |
---|
19 | common.o: cmdline.h $(COMMON_PATH)/cmdline_common.ggo cmdline_common |
---|
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) -D _CMDLINE_FILE=$(CMDLINE_FILE) 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_PATH)/cmdline_common.ggo |
---|
29 | cat cmdline_cor.ggo $(COMMON_PATH)/cmdline_common.ggo > cmdline.ggo |
---|
30 | |
---|
31 | copy: |
---|
32 | ifdef UTT_BIN_DIR |
---|
33 | cp kor ${UTT_BIN_DIR} |
---|
34 | endif |
---|
35 | |
---|
36 | clean: clean.cmdline |
---|
37 | rm *.o || true |
---|
38 | rm kor || true |
---|
39 | |
---|
40 | clean.cmdline: |
---|
41 | rm cmdline.* || true |
---|
42 | |
---|
43 | include $(COMMON_PATH)/common.mk |
---|
44 | include $(LIB_PATH)/lib.mk |
---|
Note: See
TracBrowser
for help on using the repository browser.