source: app/src/lem/Makefile @ d33e555

help
Last change on this file since d33e555 was 13a8a67, checked in by pawelk <pawelk@…>, 17 years ago

Przejrzalem narzedzia pod katem includow CMDLINE_FILE.
Gdzie mozna bylo, usunalem.
Jest pewien balagan w Makefile'ach, bo nadmiarowo dodalem -D ....
Calosc sie kompiluje i generuje sie tarball.

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

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