source: app/src/dgp/Makefile @ 12d8443

help
Last change on this file since 12d8443 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
RevLine 
[0214596]1
2
3SHELL = /bin/sh
[ff0fc99]4LIB_PATH=../../lib
[0214596]5
[b6109b9]6#vpath %.o  .
[0214596]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
[b6109b9]16objs = $(sources:%.cc=%.o)
[0214596]17
18${bin}: ${objs}
19        ${CXX} ${CXXFLAGS} -o $@ ${objs}
20
21include $(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
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
[b6109b9]40
41copy:
42ifdef 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]46endif
Note: See TracBrowser for help on using the repository browser.