source:
app/src/dgp/Makefile
@
12d8443
Last change on this file since 12d8443 was a5fdde9, checked in by pawelk <pawelk@…>, 17 years ago | |
---|---|
|
|
File size: 855 bytes |
Rev | Line | |
---|---|---|
[0214596] | 1 | |
2 | ||
3 | SHELL = /bin/sh | |
[ff0fc99] | 4 | LIB_PATH=../../lib |
[0214596] | 5 | |
[b6109b9] | 6 | #vpath %.o . |
[0214596] | 7 | |
8 | CXXFLAGS = -O2 -static | |
9 | ||
10 | sources = main.cc grammar.cc symbol.cc mgraph.cc sgraph.cc dgp0.cc cmdline.cc \ | |
11 | common.cc global.cc | |
12 | ||
13 | bin = dgp | |
14 | ||
15 | # plik *.o sa umieszczane w podkatalogu o | |
[b6109b9] | 16 | objs = $(sources:%.cc=%.o) |
[0214596] | 17 | |
18 | ${bin}: ${objs} | |
19 | ${CXX} ${CXXFLAGS} -o $@ ${objs} | |
20 | ||
21 | include $(sources:.cc=.d) | |
22 | ||
[b6109b9] | 23 | %.o: %.cc |
[0214596] | 24 | ${CXX} -c ${CXXFLAGS} -o $@ $< |
25 | ||
26 | %.d: %.cc | |
27 | $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ | |
[b6109b9] | 28 | sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ |
[0214596] | 29 | rm -f $@.$$$$ |
30 | ||
31 | cmdline.cc cmdline.h : cmdline.ggo | |
32 | gengetopt --c-extension=cc -i cmdline.ggo | |
33 | ||
34 | clean: | |
35 | rm ${bin} ${objs} cmdline.cc cmdline.h | |
36 | rm -rf *.d | |
37 | ||
38 | prof: dgp | |
39 | gprof dgp ~/tmp/dgp-pl/gmon.out > dgp.prof | |
[b6109b9] | 40 | |
41 | copy: | |
42 | ifdef UTT_BIN_DIR | |
[ff0fc99] | 43 | cp dgp dgc canonize tre.rb $(UTT_BIN_DIR)/ |
[cfed5c1] | 44 | # ponizsza linijka jest do usuniecia |
45 | cp go attr.pm seg.rb $(UTT_BIN_DIR)/ | |
[b6109b9] | 46 | endif |
Note: See TracBrowser
for help on using the repository browser.