przygotowanie dgp do dystrybucji (nie skonczone)
git-svn-id: svn://atos.wmid.amu.edu.pl/utt@29 e293616e-ec6a-49c2-aa92-f4a8b91c5d16
This commit is contained in:
parent
aa9f1bc014
commit
b6109b9c36
@ -27,7 +27,7 @@ export UTT_SHARE_DIR=${UTT_DIR}/share
|
||||
##############################
|
||||
|
||||
# list of components to be included in the distribution
|
||||
COMPONENTS = compiledic cor fla gph grp kon kor kot lem mar rm12 rs12 sen-l sen-nl ser tags tok.l unfla
|
||||
COMPONENTS = compiledic cor dgp fla gph grp kon kor kot lem mar rm12 rs12 sen-l sen-nl ser tags tok.l unfla
|
||||
# gue nie dziala!
|
||||
|
||||
##############################
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
SHELL = /bin/sh
|
||||
|
||||
vpath %.o o
|
||||
#vpath %.o .
|
||||
|
||||
CXXFLAGS = -O2 -static
|
||||
|
||||
@ -12,19 +12,19 @@ sources = main.cc grammar.cc symbol.cc mgraph.cc sgraph.cc dgp0.cc cmdline.cc \
|
||||
bin = dgp
|
||||
|
||||
# plik *.o sa umieszczane w podkatalogu o
|
||||
objs = $(sources:%.cc=o/%.o)
|
||||
objs = $(sources:%.cc=%.o)
|
||||
|
||||
${bin}: ${objs}
|
||||
${CXX} ${CXXFLAGS} -o $@ ${objs}
|
||||
|
||||
include $(sources:.cc=.d)
|
||||
|
||||
o/%.o: %.cc
|
||||
%.o: %.cc
|
||||
${CXX} -c ${CXXFLAGS} -o $@ $<
|
||||
|
||||
%.d: %.cc
|
||||
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
|
||||
sed 's,\($*\)\.o[ :]*,o/\1.o $@ : ,g' < $@.$$$$ > $@; \
|
||||
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
|
||||
rm -f $@.$$$$
|
||||
|
||||
cmdline.cc cmdline.h : cmdline.ggo
|
||||
@ -36,3 +36,8 @@ clean:
|
||||
|
||||
prof: dgp
|
||||
gprof dgp ~/tmp/dgp-pl/gmon.out > dgp.prof
|
||||
|
||||
copy:
|
||||
ifdef UTT_BIN_DIR
|
||||
cp dgp dgc canonize $(UTT_BIN_DIR)
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user