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
|
Rev | Line | |
---|
[7bed30f] | 1 | PAR=-Wno-deprecated -fpermissive -static |
---|
| 2 | PAR2=-c -Wno-deprecated -fpermissive |
---|
[ac7d970] | 3 | LIB_PATH=../lib |
---|
| 4 | COMMON_PATH=../common |
---|
| 5 | CMDLINE_FILE='"../kor/cmdline.h"' |
---|
| 6 | |
---|
| 7 | |
---|
[a6e708f] | 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 |
---|
[13a8a67] | 10 | g++ $(PAR) -D _CMDLINE_FILE=$(CMDLINE_FILE) main.cc corlist.o corr.o common.o \ |
---|
[ac7d970] | 11 | $(LIB_PATH)/word.o $(LIB_PATH)/auttools.o cmdline.c common_cor.o \ |
---|
| 12 | -o kor |
---|
| 13 | |
---|
[a6e708f] | 14 | corr.o: corr.cc corr.hh cmdline.h |
---|
[13a8a67] | 15 | g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) corr.cc |
---|
[7bed30f] | 16 | |
---|
[ac7d970] | 17 | corlist.o: corlist.cc corlist.h cmdline.h |
---|
[a6e708f] | 18 | g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) corlist.cc |
---|
[ac7d970] | 19 | |
---|
[a6e708f] | 20 | common.o: cmdline.h $(COMMON_PATH)/cmdline_common.ggo $(COMMON_PATH)/common.cc \ |
---|
| 21 | $(COMMON_PATH)/common.h |
---|
[ac7d970] | 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 |
---|
[13a8a67] | 25 | g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) common_cor.cc |
---|
[ac7d970] | 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.