source: _old/app/src/lem/Makefile @ f712e16

Last change on this file since f712e16 was 57728c1, checked in by Mateusz Hromada <ruanda@…>, 15 years ago

Move old files to _old dir.

  • Property mode set to 100644
File size: 1.6 KB
Line 
1PAR=-Wno-deprecated -m32 -O3 -fpermissive -static
2PAR2=-c -Wno-deprecated -m32 -O3 -fpermissive -static
3LIB_PATH=../lib
4COMMON_PATH=../common
5CMDLINE_FILE='"../lem/cmdline.h"'
6
7
8lem: main.cc lem.o  $(LIB_PATH)/auttools.o $(LIB_PATH)/word.o \
9      cmdline.c common_lem.o common.o symtab.o
10        g++ $(PAR) -D _CMDLINE_FILE=$(CMDLINE_FILE) \
11        main.cc lem.o $(LIB_PATH)/auttools.o \
12        $(LIB_PATH)/word.o cmdline.c common.o common_lem.o \
13        symtab.o -o lem
14
15lem.o: lem.h lem.cc
16        g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) lem.cc
17
18# alphabet.o: $(LIB_PATH)/alphabet.h $(LIB_PATH)/alphabet.cc
19#       g++ $(PAR2) $(LIB_PATH)/alphabet.cc
20
21# auttools.o: $(LIB_PATH)/auttools.h $(LIB_PATH)/auttools.cc
22#       g++ $(PAR2) $(LIB_PATH)/auttools.cc
23
24# word.o: $(LIB_PATH)/word.h $(LIB_PATH)/word.cc
25#       g++ $(PAR2) $(LIB_PATH)/word.cc
26
27# erro.o: $(LIB_PATH)/erro.h $(LIB_PATH)/erro.cc
28#       g++ $(PAR2) $(LIB_PATH)/erro.cc
29
30common.o: $(COMMON_PATH)/cmdline_common.ggo $(COMMON_PATH)/common.cc \
31         $(COMMON_PATH)/common.h
32        g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) $(COMMON_PATH)/common.cc
33
34common_lem.o: cmdline.h common_lem.h common_lem.cc
35        g++ $(PAR2) -D _CMDLINE_FILE=$(CMDLINE_FILE) common_lem.cc
36
37cmdline.c cmdline.h: cmdline.ggo
38        gengetopt -i cmdline.ggo --conf-parser
39
40cmdline.ggo: cmdline_lem.ggo ../common/cmdline_common.ggo
41        cat cmdline_lem.ggo ../common/cmdline_common.ggo > cmdline.ggo
42
43symtab.o: $(LIB_PATH)/symtab.h $(LIB_PATH)/symtab.cc
44        g++ $(PAR2) $(LIB_PATH)/symtab.cc
45
46clean: clean.cmdline
47        rm *.o || true
48        rm lem || true
49
50clean.cmdline:
51        rm cmdline.* || true
52
53copy:
54ifdef UTT_BIN_DIR
55        cp lem $(UTT_BIN_DIR)
56endif
Note: See TracBrowser for help on using the repository browser.