source: _old/app/src/tok.c/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 100644
File size: 975 bytes
Line 
1PAR=-Wno-deprecated -O3 -fpermissive
2PAR2=-c -Wno-deprecated -O3
3LIB_PATH=../lib
4COMMON_PATH=../common
5CMDLINE_FILE='"../tok.c/cmdline.h"'
6
7
8tok: tok.o cmdline.c common_tok.o common.o
9        g++ $(PAR) -D _CMDLINE_FILE=$(CMDLINE_FILE) \
10        tok.c cmdline.c common.o common_tok.o -o tok
11
12tok.o: tok.c cmdline.h
13        g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) tok.c
14
15common_tok.o: cmdline.h  common_tok.cc common_tok.h
16        g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) common_tok.cc
17
18common.o: cmdline_common
19        g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) $(COMMON_PATH)/common.cc
20
21cmdline.ggo: cmdline_tok.ggo $(COMMON_PATH)/cmdline_common.ggo
22        cat cmdline_tok.ggo $(COMMON_PATH)/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 || true
35        rm tok || true
36
37clean.cmdline:
38        rm cmdline.*
39
40include $(COMMON_PATH)/common.mk
41include $(LIB_PATH)/lib.mk
Note: See TracBrowser for help on using the repository browser.