source: app/src/dgp/Makefile @ a5fdde9

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

Wprowadzilem globalne pliki konfiguracyjne. Dokonalem drobnych poprawek w strukturze.

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

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