source: _old/app/src/kor/Makefile @ 5f4d9c3

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