Commit 63875a92 authored by Stefan Kombrink's avatar Stefan Kombrink
Browse files

try&error, now it seems to work!!


git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@461 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
parent 6846c1dc
all:
EXTRA_CXXFLAGS = -Wno-sign-compare
include ../kaldi.mk
EXTRA_CXXFLAGS = -Wno-sign-compare
BINFILES = rnn-rescore
OBJFILES = rnnlm.o
all: $(BINFILES)
LIBFILE = rnnlm.a
TESTFILES =
all: $(LIBFILE) $(BINFILES)
$(BINFILES): ../lat/kaldi-lat.a ../matrix/kaldi-matrix.a ../util/kaldi-util.a ../base/kaldi-base.a
$(LIBFILE): $(OBJFILES)
$(AR) -cru $(LIBFILE) $(OBJFILES)
$(RANLIB) $(LIBFILE)
$(BINFILES): ../lat/kaldi-lat.a ../matrix/kaldi-matrix.a ../util/kaldi-util.a ../base/kaldi-base.a ../rnn/rnnlm.a
# Rule below would expand to, e.g.:
# ../base/kaldi-base.a:
# make -c ../base kaldi-base.a
# -c option to make is same as changing directory.
# # ../base/kaldi-base.a:
# # make -c ../base kaldi-base.a
# # -c option to make is same as changing directory.
%.a:
$(MAKE) -C ${@D} ${@F}
clean:
rm *.o *.a $(TESTFILES) $(BINFILES)
test: $(TESTFILES)
for x in $(TESTFILES); do ./$$x >&/dev/null || (echo "***test $$x failed***"; exit 1); done
echo Tests succeeded
.valgrind: $(TESTFILES)
rm *.o *.a $(BINFILES)
depend:
-$(CXX) -M $(CXXFLAGS) *.cc > .depend.mk
......@@ -42,4 +36,3 @@ depend:
#.depend.mk: depend
-include .depend.mk
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment