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