Last change
on this file since 743cc4f was
57728c1,
checked in by Mateusz Hromada <ruanda@…>, 15 years ago
|
Move old files to _old dir.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | PAR=-Wno-deprecated -m32 -fpermissive -static |
---|
2 | PAR2=-c -Wno-deprecated -m32 -fpermissive |
---|
3 | LIB_PATH=../lib |
---|
4 | COMMON_PATH=../common |
---|
5 | CMDLINE_FILE='"../cor/cmdline.h"' |
---|
6 | |
---|
7 | |
---|
8 | cor: main.cc corr.o $(LIB_PATH)/word.o \ |
---|
9 | $(LIB_PATH)/auttools.o cmdline.c common_cor.o common.o |
---|
10 | g++ $(PAR) -D _CMDLINE_FILE=$(CMDLINE_FILE) main.cc corr.o common.o \ |
---|
11 | $(LIB_PATH)/word.o $(LIB_PATH)/auttools.o cmdline.c common_cor.o \ |
---|
12 | -o cor |
---|
13 | |
---|
14 | corr.o: corr.cc corr.hh |
---|
15 | g++ $(PAR2) corr.cc |
---|
16 | |
---|
17 | common.o: $(COMMON_PATH)/cmdline_common.ggo $(COMMON_PATH)/common.cc \ |
---|
18 | $(COMMON_PATH)/common.h |
---|
19 | g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) $(COMMON_PATH)/common.cc |
---|
20 | |
---|
21 | common_cor.o: cmdline.h common_cor.cc common_cor.h |
---|
22 | g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) common_cor.cc |
---|
23 | |
---|
24 | cmdline.c cmdline.h: cmdline.ggo |
---|
25 | gengetopt -i cmdline.ggo --conf-parser |
---|
26 | |
---|
27 | cmdline.ggo: cmdline_cor.ggo $(COMMON_PATH)/cmdline_common.ggo |
---|
28 | cat cmdline_cor.ggo $(COMMON_PATH)/cmdline_common.ggo > cmdline.ggo |
---|
29 | |
---|
30 | copy: |
---|
31 | ifdef UTT_BIN_DIR |
---|
32 | cp cor ${UTT_BIN_DIR} |
---|
33 | endif |
---|
34 | |
---|
35 | clean: clean.cmdline |
---|
36 | rm *.o || true |
---|
37 | rm cor || true |
---|
38 | |
---|
39 | clean.cmdline: |
---|
40 | rm cmdline.* || true |
---|
41 | |
---|
Note: See
TracBrowser
for help on using the repository browser.