source: _old/app/src/kor/Makefile @ 7bed30f

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