Last change
on this file since b242df2 was
e7de6cc,
checked in by Tomasz Obrebski <to@…>, 13 years ago
|
new version of dgp
added dgc, tre and compdic components
compiledic renamed to compdic_utf8
./configure updated
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | |
---|
2 | include ../../config.mak |
---|
3 | |
---|
4 | |
---|
5 | SHELL = /bin/sh |
---|
6 | LIB_PATH=../../lib |
---|
7 | COMMON_PATH=../common |
---|
8 | CMDLINE_FILE='"../dgp/cmdline.h"' |
---|
9 | |
---|
10 | |
---|
11 | #vpath %.o . |
---|
12 | |
---|
13 | CXXFLAGS = -g -static |
---|
14 | |
---|
15 | sources = main.cc grammar.cc symbol.cc mgraph.cc sgraph.cc dgp1.cc cmdline.cc \ |
---|
16 | $(COMMON_PATH)/common.cc global.cc |
---|
17 | |
---|
18 | bin = dgp |
---|
19 | |
---|
20 | # plik *.o sa umieszczane w podkatalogu o |
---|
21 | objs = $(sources:%.cc=%.o) |
---|
22 | |
---|
23 | ${bin}: ${objs} |
---|
24 | ${CXX} ${CXXFLAGS} -D _CMDLINE_FILE=$(CMDLINE_FILE) -o $@ ${objs} |
---|
25 | |
---|
26 | include $(sources:.cc=.d) |
---|
27 | |
---|
28 | %.o: %.cc |
---|
29 | ${CXX} -D _CMDLINE_FILE=$(CMDLINE_FILE) -c ${CXXFLAGS} -o $@ $< |
---|
30 | |
---|
31 | %.d: %.cc |
---|
32 | $(CC) -MM $(CPPFLAGS) -D _CMDLINE_FILE=$(CMDLINE_FILE) $< > $@.$$$$; \ |
---|
33 | sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ |
---|
34 | rm -f $@.$$$$ |
---|
35 | |
---|
36 | |
---|
37 | cmdline.cc cmdline.h: cmdline.ggo |
---|
38 | gengetopt -i cmdline.ggo --c-extension=cc --conf-parser |
---|
39 | |
---|
40 | cmdline.ggo: cmdline_dgp.ggo ../common/cmdline_common.ggo |
---|
41 | cat cmdline_dgp.ggo ../common/cmdline_common.ggo > cmdline.ggo |
---|
42 | |
---|
43 | |
---|
44 | |
---|
45 | .PHONY: clean |
---|
46 | clean: |
---|
47 | rm -f ${bin} ${objs} cmdline.* |
---|
48 | rm -f *.d |
---|
49 | |
---|
50 | .PHONY: prof |
---|
51 | prof: dgp |
---|
52 | gprof dgp ~/tmp/dgp-pl/gmon.out > dgp.prof |
---|
53 | |
---|
54 | |
---|
55 | .PHONY: install |
---|
56 | install: |
---|
57 | ifdef BIN_DIR |
---|
58 | install -m 0755 dgp $(BIN_DIR) |
---|
59 | endif |
---|
60 | |
---|
61 | .PHONY: uninstall |
---|
62 | uninstall: |
---|
63 | ifdef BIN_DIR |
---|
64 | rm $(BIN_DIR)/dgp |
---|
65 | endif |
---|
Note: See
TracBrowser
for help on using the repository browser.