source: app/src/cor/Makefile @ 028d99f

help
Last change on this file since 028d99f 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 100644
File size: 1.1 KB
RevLine 
[25ae32e]1PAR=-Wno-deprecated -m32 -fpermissive
2# -static
3PAR2=-c -Wno-deprecated -m32 -fpermissive
4LIB_PATH=../lib
5COMMON_PATH=../common
6CMDLINE_FILE='"../cor/cmdline.h"'
7
8
9cor: main.cc corr.o $(LIB_PATH)/word.o \
10        $(LIB_PATH)/auttools.o cmdline.c common_cor.o common.o
[13a8a67]11        g++ $(PAR) -D _CMDLINE_FILE=$(CMDLINE_FILE) main.cc corr.o common.o \
[25ae32e]12        $(LIB_PATH)/word.o $(LIB_PATH)/auttools.o cmdline.c common_cor.o \
13        -o cor
14
15corr.o: corr.cc corr.hh
16        g++ $(PAR2) corr.cc
17
18common.o: $(COMMON_PATH)/cmdline_common.ggo $(COMMON_PATH)/common.cc \
19         $(COMMON_PATH)/common.h
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
[25ae32e]24
25cmdline.c cmdline.h: cmdline.ggo
26        gengetopt -i cmdline.ggo --conf-parser
27
[8d3e6ab]28cmdline.ggo: cmdline_cor.ggo $(COMMON_PATH)/cmdline_common.ggo
29        cat cmdline_cor.ggo $(COMMON_PATH)/cmdline_common.ggo > cmdline.ggo
[25ae32e]30
31copy:
32ifdef UTT_BIN_DIR
33        cp cor ${UTT_BIN_DIR}
34endif
35
36clean: clean.cmdline
37        rm *.o || true
38        rm cor || true
39
40clean.cmdline:
41        rm cmdline.* || true
42
Note: See TracBrowser for help on using the repository browser.