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:
obrebski 2008-04-22 11:31:17 +00:00
parent aa9f1bc014
commit b6109b9c36
2 changed files with 10 additions and 5 deletions

View File

@ -27,7 +27,7 @@ export UTT_SHARE_DIR=${UTT_DIR}/share
############################## ##############################
# list of components to be included in the distribution # 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! # gue nie dziala!
############################## ##############################

View File

@ -2,7 +2,7 @@
SHELL = /bin/sh SHELL = /bin/sh
vpath %.o o #vpath %.o .
CXXFLAGS = -O2 -static CXXFLAGS = -O2 -static
@ -12,19 +12,19 @@ sources = main.cc grammar.cc symbol.cc mgraph.cc sgraph.cc dgp0.cc cmdline.cc \
bin = dgp bin = dgp
# plik *.o sa umieszczane w podkatalogu o # plik *.o sa umieszczane w podkatalogu o
objs = $(sources:%.cc=o/%.o) objs = $(sources:%.cc=%.o)
${bin}: ${objs} ${bin}: ${objs}
${CXX} ${CXXFLAGS} -o $@ ${objs} ${CXX} ${CXXFLAGS} -o $@ ${objs}
include $(sources:.cc=.d) include $(sources:.cc=.d)
o/%.o: %.cc %.o: %.cc
${CXX} -c ${CXXFLAGS} -o $@ $< ${CXX} -c ${CXXFLAGS} -o $@ $<
%.d: %.cc %.d: %.cc
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,o/\1.o $@ : ,g' < $@.$$$$ > $@; \ sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$ rm -f $@.$$$$
cmdline.cc cmdline.h : cmdline.ggo cmdline.cc cmdline.h : cmdline.ggo
@ -36,3 +36,8 @@ clean:
prof: dgp prof: dgp
gprof dgp ~/tmp/dgp-pl/gmon.out > dgp.prof gprof dgp ~/tmp/dgp-pl/gmon.out > dgp.prof
copy:
ifdef UTT_BIN_DIR
cp dgp dgc canonize $(UTT_BIN_DIR)
endif