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