source: app/src/kor/Makefile @ 261bf62

help
Last change on this file since 261bf62 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
Line 
1PAR=-Wno-deprecated -m32 -fpermissive
2# -static
3PAR2=-c -Wno-deprecated -m32 -fpermissive
4LIB_PATH=../lib
5COMMON_PATH=../common
6CMDLINE_FILE='"../kor/cmdline.h"'
7
8
9kor: main.cc corr.o corlist.o cmdline.o $(LIB_PATH)/word.o \
10        $(LIB_PATH)/auttools.o cmdline.c common_cor.o common.o
11        g++ $(PAR) -D _CMDLINE_FILE=$(CMDLINE_FILE) main.cc corlist.o corr.o common.o \
12        $(LIB_PATH)/word.o $(LIB_PATH)/auttools.o cmdline.c common_cor.o \
13        -o kor
14
15corr.o: corr.cc corr.hh cmdline.h
16        g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) corr.cc
17       
18corlist.o: corlist.cc corlist.h cmdline.h
19        g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) corlist.cc
20       
21
22
23common.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
27common_cor.o: cmdline.h common_cor.cc common_cor.h
28        g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) common_cor.cc
29
30cmdline.c cmdline.h: cmdline.ggo
31        gengetopt -i cmdline.ggo --conf-parser
32
33cmdline.ggo: cmdline_cor.ggo $(COMMON_PATH)/cmdline_common.ggo
34        cat cmdline_cor.ggo $(COMMON_PATH)/cmdline_common.ggo > cmdline.ggo
35
36copy:
37ifdef UTT_BIN_DIR
38        cp kor ${UTT_BIN_DIR}
39endif
40
41clean: clean.cmdline
42        rm *.o || true
43        rm kor || true
44
45clean.cmdline:
46        rm cmdline.* || true
47
Note: See TracBrowser for help on using the repository browser.