Blame view
src/tfrnnlmbin/Makefile
1.47 KB
8dcb6dfcb first commit |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# This directory is not compiled automatically when you do make under src/ # to compile the TensorFlow related code, do the following: # you would need to run tools/extras/install_tensorflow_cc.sh first to generate # the static library files required for compilation, and then # cd ${KALDI_ROOT}/src # cd tfrnnlm # make # cd ../tfrnnlmbin/ # make TENSORFLOW = $(shell pwd)/../../tools/tensorflow all: EXTRA_CXXFLAGS = -Wno-sign-compare \ -I$(TENSORFLOW)/bazel-tensorflow/external/protobuf_archive/src \ -I$(TENSORFLOW)/bazel-genfiles -I$(TENSORFLOW) \ -I$(TENSORFLOW)/tensorflow/contrib/makefile/downloads/eigen \ -I$(TENSORFLOW)/tensorflow/contrib/makefile/downloads/nsync/public \ -I$(TENSORFLOW)/tensorflow/contrib/makefile/downloads/protobuf/src \ -I${TENSORFLOW}/tensorflow/contrib/makefile/downloads/absl include ../kaldi.mk BINFILES = lattice-lmrescore-tf-rnnlm lattice-lmrescore-tf-rnnlm-pruned OBJFILES = TESTFILES = ADDLIBS = ../lat/kaldi-lat.a ../lm/kaldi-lm.a ../fstext/kaldi-fstext.a \ ../hmm/kaldi-hmm.a ../tree/kaldi-tree.a ../util/kaldi-util.a \ ../matrix/kaldi-matrix.a ../base/kaldi-base.a \ ../tfrnnlm/kaldi-tensorflow-rnnlm.a LDLIBS += -lz -ldl -fPIC -lrt LDLIBS += -L$(TENSORFLOW)/bazel-bin/tensorflow -ltensorflow_cc -ltensorflow_framework LDFLAGS += -Wl,-rpath,$(TENSORFLOW)/bazel-bin/tensorflow/ include ../makefiles/default_rules.mk |