source: app/src/tok.c/Makefile @ 13a8a67

help
Last change on this file since 13a8a67 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: 916 bytes
Line 
1PAR=-Wno-deprecated -O3
2PAR2=-c -Wno-deprecated -O3
3LIB_PATH=../lib
4CMDLINE_FILE='"../tok.c/cmdline.h"'
5
6
7tok: tok.o cmdline.c common_tok.o common.o
8        g++ $(PAR) -D _CMDLINE_FILE=$(CMDLINE_FILE) \
9        tok.c cmdline.c common.o common_tok.o -o tok
10
11tok.o: tok.c cmdline.h
12        g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) tok.c
13
14common_tok.o: cmdline.h  common_tok.cc common_tok.h
15        g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) common_tok.cc
16
17common.o: $(COMMON_PATH)/cmdline_common.ggo $(COMMON_PATH)/common.cc \
18        $(COMMON_PATH)/common.h
19        g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) $(COMMON_PATH)/common.cc
20
21cmdline.ggo: cmdline_tok.ggo ../common/cmdline_common.ggo
22        cat cmdline_tok.ggo ../common/cmdline_common.ggo > cmdline.ggo
23
24cmdline.c cmdline.h: cmdline.ggo
25        gengetopt -i cmdline.ggo --conf-parser
26
27copy:
28ifdef UTT_BIN_DIR
29    cp tok ${UTT_BIN_DIR}/
30endif
31
32
33clean: clean.cmdline
34        rm *.o
35
36clean.cmdline:
37        rm cmdline.*
Note: See TracBrowser for help on using the repository browser.