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