source: _old/app/src/kor/Makefile @ 1e121f4

Last change on this file since 1e121f4 was 1e121f4, checked in by Adam Kędziora <s301614@…>, 14 years ago

Replacing old implementation with working implementation

  • Property mode set to 100755
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 word.o auttools.o cmdline.c common_cor.o common.o
9        g++ $(PAR) -D _CMDLINE_FILE=$(CMDLINE_FILE) main.cc corlist.o corr.o common.o \
10        $(LIB_PATH)/word.o $(LIB_PATH)/auttools.o cmdline.c common_cor.o \
11        -o kor
12
13corr.o: corr.cc corr.h cmdline.h
14        g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) corr.cc
15       
16corlist.o: corlist.cc corlist.h cmdline.h
17        g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) corlist.cc
18
19common.o: cmdline.h $(COMMON_PATH)/cmdline_common.ggo cmdline_common
20        g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) $(COMMON_PATH)/common.cc
21
22common_cor.o: cmdline.h common_cor.cc common_cor.h
23        g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) common_cor.cc
24
25cmdline.c cmdline.h: cmdline.ggo
26        gengetopt -i cmdline.ggo --conf-parser
27
28cmdline.ggo: cmdline_cor.ggo $(COMMON_PATH)/cmdline_common.ggo
29        cat cmdline_cor.ggo $(COMMON_PATH)/cmdline_common.ggo > cmdline.ggo
30
31copy:
32ifdef UTT_BIN_DIR
33        cp kor ${UTT_BIN_DIR}
34endif
35
36clean: clean.cmdline
37        rm *.o || true
38        rm kor || true
39
40clean.cmdline:
41        rm cmdline.* || true
42
43include $(COMMON_PATH)/common.mk
44include $(LIB_PATH)/lib.mk
Note: See TracBrowser for help on using the repository browser.