Last change
on this file since 7bed30f was
7bed30f,
checked in by tom <tom@…>, 13 years ago
|
poprawione Makefile (wyrzucone -m32)
lem, cor, kor, gue kompiluja sie (ubuntu 11.04 amd64)
|
-
Property mode set to
100644
|
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 $(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 corlist.o corr.o common.o \ |
---|
11 | $(LIB_PATH)/word.o $(LIB_PATH)/auttools.o cmdline.c common_cor.o \ |
---|
12 | -o kor |
---|
13 | |
---|
14 | corr.o: corr.cc corr.hh cmdline.h |
---|
15 | g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) corr.cc |
---|
16 | |
---|
17 | corlist.o: corlist.cc corlist.h cmdline.h |
---|
18 | g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) corlist.cc |
---|
19 | |
---|
20 | common.o: cmdline.h $(COMMON_PATH)/cmdline_common.ggo $(COMMON_PATH)/common.cc \ |
---|
21 | $(COMMON_PATH)/common.h |
---|
22 | g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) $(COMMON_PATH)/common.cc |
---|
23 | |
---|
24 | common_cor.o: cmdline.h common_cor.cc common_cor.h |
---|
25 | g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) common_cor.cc |
---|
26 | |
---|
27 | cmdline.c cmdline.h: cmdline.ggo |
---|
28 | gengetopt -i cmdline.ggo --conf-parser |
---|
29 | |
---|
30 | cmdline.ggo: cmdline_cor.ggo $(COMMON_PATH)/cmdline_common.ggo |
---|
31 | cat cmdline_cor.ggo $(COMMON_PATH)/cmdline_common.ggo > cmdline.ggo |
---|
32 | |
---|
33 | copy: |
---|
34 | ifdef UTT_BIN_DIR |
---|
35 | cp kor ${UTT_BIN_DIR} |
---|
36 | endif |
---|
37 | |
---|
38 | clean: clean.cmdline |
---|
39 | rm *.o || true |
---|
40 | rm kor || true |
---|
41 | |
---|
42 | clean.cmdline: |
---|
43 | rm cmdline.* || true |
---|
44 | |
---|
Note: See
TracBrowser
for help on using the repository browser.