help
Last change
on this file since 0e3df7e 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.2 KB
|
Line | |
---|
1 | |
---|
2 | |
---|
3 | SHELL = /bin/sh |
---|
4 | LIB_PATH=../../lib |
---|
5 | COMMON_PATH=../common |
---|
6 | CMDLINE_FILE='"../dgp/cmdline.h"' |
---|
7 | |
---|
8 | |
---|
9 | #vpath %.o . |
---|
10 | |
---|
11 | CXXFLAGS = -O2 -static |
---|
12 | |
---|
13 | sources = main.cc grammar.cc symbol.cc mgraph.cc sgraph.cc dgp0.cc cmdline.cc \ |
---|
14 | $(COMMON_PATH)/common.cc global.cc |
---|
15 | |
---|
16 | bin = dgp |
---|
17 | |
---|
18 | # plik *.o sa umieszczane w podkatalogu o |
---|
19 | objs = $(sources:%.cc=%.o) |
---|
20 | |
---|
21 | ${bin}: ${objs} |
---|
22 | ${CXX} ${CXXFLAGS} -D _CMDLINE_FILE=$(CMDLINE_FILE) -o $@ ${objs} |
---|
23 | |
---|
24 | include $(sources:.cc=.d) |
---|
25 | |
---|
26 | %.o: %.cc |
---|
27 | ${CXX} -D _CMDLINE_FILE=$(CMDLINE_FILE) -c ${CXXFLAGS} -o $@ $< |
---|
28 | |
---|
29 | %.d: %.cc |
---|
30 | $(CC) -MM $(CPPFLAGS) -D _CMDLINE_FILE=$(CMDLINE_FILE) $< > $@.$$$$; \ |
---|
31 | sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ |
---|
32 | rm -f $@.$$$$ |
---|
33 | |
---|
34 | # stare: |
---|
35 | # cmdline.cc cmdline.h : cmdline.ggo |
---|
36 | # gengetopt --c-extension=cc -i cmdline.ggo |
---|
37 | # nowe |
---|
38 | cmdline.cc cmdline.h: cmdline.ggo |
---|
39 | gengetopt -i cmdline.ggo --c-extension=cc --conf-parser |
---|
40 | |
---|
41 | cmdline.ggo: cmdline_dgp.ggo ../common/cmdline_common.ggo |
---|
42 | cat cmdline_dgp.ggo ../common/cmdline_common.ggo > cmdline.ggo |
---|
43 | # endnowe |
---|
44 | |
---|
45 | |
---|
46 | clean: |
---|
47 | rm ${bin} ${objs} cmdline.cc cmdline.h |
---|
48 | rm -rf *.d |
---|
49 | |
---|
50 | prof: dgp |
---|
51 | gprof dgp ~/tmp/dgp-pl/gmon.out > dgp.prof |
---|
52 | |
---|
53 | copy: |
---|
54 | ifdef UTT_BIN_DIR |
---|
55 | cp dgp dgc canonize tre.rb $(UTT_BIN_DIR)/ |
---|
56 | # ponizsza linijka jest do usuniecia |
---|
57 | cp go attr.pm seg.rb $(UTT_BIN_DIR)/ |
---|
58 | endif |
---|
Note: See
TracBrowser
for help on using the repository browser.