source: _old/app/src/gue/Makefile @ 7bed30f

Last change on this file since 7bed30f was 7bed30f, checked in by tom <tom@…>, 13 years ago

poprawione Makefile (wyrzucone -m32)
lem, cor, kor, gue kompiluja sie (ubuntu 11.04 amd64)

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