source: app/src/dgp/Makefile @ 0214596

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

Dodalismy do pakietu utt komponent dgp (brak configow i innych bajerow).

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

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