source: app/src/lem/Makefile @ ff0fc99

help
Last change on this file since ff0fc99 was 25ae32e, checked in by obrebski <obrebski@…>, 17 years ago

git-svn-id: svn://atos.wmid.amu.edu.pl/utt@4 e293616e-ec6a-49c2-aa92-f4a8b91c5d16

  • Property mode set to 100644
File size: 1.5 KB
Line 
1PAR=-Wno-deprecated -m32 -O3 -fpermissive
2#-static
3PAR2=-c -Wno-deprecated -m32 -O3 -fpermissive
4LIB_PATH=../lib
5COMMON_PATH=../common
6CMDLINE_FILE='"../lem/cmdline.h"'
7
8
9lem: main.cc lem.o  $(LIB_PATH)/auttools.o $(LIB_PATH)/word.o \
10      cmdline.c common_lem.o common.o symtab.o
11        g++ $(PAR) 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) 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) 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.