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
RevLine 
[1e121f4]1PAR=-Wno-deprecated -fpermissive -static
2PAR2=-c -Wno-deprecated -fpermissive
[ac7d970]3LIB_PATH=../lib
4COMMON_PATH=../common
5CMDLINE_FILE='"../kor/cmdline.h"'
6
7
[1e121f4]8kor: main.cc corr.o corlist.o cmdline.o word.o auttools.o cmdline.c common_cor.o common.o
[13a8a67]9        g++ $(PAR) -D _CMDLINE_FILE=$(CMDLINE_FILE) main.cc corlist.o corr.o common.o \
[ac7d970]10        $(LIB_PATH)/word.o $(LIB_PATH)/auttools.o cmdline.c common_cor.o \
11        -o kor
12
[1e121f4]13corr.o: corr.cc corr.h cmdline.h
[13a8a67]14        g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) corr.cc
[ac7d970]15       
16corlist.o: corlist.cc corlist.h cmdline.h
[1e121f4]17        g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) corlist.cc
[ac7d970]18
[1e121f4]19common.o: cmdline.h $(COMMON_PATH)/cmdline_common.ggo cmdline_common
[ac7d970]20        g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) $(COMMON_PATH)/common.cc
21
22common_cor.o: cmdline.h common_cor.cc common_cor.h
[13a8a67]23        g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) common_cor.cc
[ac7d970]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
[1e121f4]43include $(COMMON_PATH)/common.mk
44include $(LIB_PATH)/lib.mk
Note: See TracBrowser for help on using the repository browser.