help
Last change
on this file since 0e3df7e was
13a8a67,
checked in by pawelk <pawelk@…>, 17 years ago
|
Przejrzalem narzedzia pod katem includow CMDLINE_FILE.
Gdzie mozna bylo, usunalem.
Jest pewien balagan w Makefile'ach, bo nadmiarowo dodalem -D ....
Calosc sie kompiluje i generuje sie tarball.
git-svn-id: svn://atos.wmid.amu.edu.pl/utt@36 e293616e-ec6a-49c2-aa92-f4a8b91c5d16
|
-
Property mode set to
100755
|
File size:
1.2 KB
|
Rev | Line | |
---|
[ac7d970] | 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 |
---|
[13a8a67] | 11 | g++ $(PAR) -D _CMDLINE_FILE=$(CMDLINE_FILE) main.cc corlist.o corr.o common.o \ |
---|
[ac7d970] | 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 |
---|
[13a8a67] | 16 | g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) corr.cc |
---|
[ac7d970] | 17 | |
---|
| 18 | corlist.o: corlist.cc corlist.h cmdline.h |
---|
[13a8a67] | 19 | g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) corlist.cc |
---|
[ac7d970] | 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 |
---|
[13a8a67] | 28 | g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) common_cor.cc |
---|
[ac7d970] | 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.