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