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