summaryrefslogtreecommitdiff
path: root/kaldi_seq/Makefile
diff options
context:
space:
mode:
authorYimmon Zhuang <[email protected]>2015-10-08 22:29:10 +0800
committerYimmon Zhuang <[email protected]>2015-10-08 22:29:10 +0800
commitccbafeb6f44cee8f23eb440a670ce16fdda58682 (patch)
tree5b46e3f3c6d9461ed718f9c226f61a4f3749f522 /kaldi_seq/Makefile
parent3d85aeadc910c6f7fe067061a960e30aed5f7135 (diff)
MMI support
Diffstat (limited to 'kaldi_seq/Makefile')
-rw-r--r--kaldi_seq/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/kaldi_seq/Makefile b/kaldi_seq/Makefile
index 9ac1625..7e2dd2e 100644
--- a/kaldi_seq/Makefile
+++ b/kaldi_seq/Makefile
@@ -4,7 +4,7 @@ KDIR := /slfs6/users/ymz09/kaldi/
SHELL := /bin/bash
BUILD_DIR := $(CURDIR)/build
INC_PATH := $(LUA_BINDIR)/../include/
-OBJS := init.o src/kaldi_mpe.o src/init.o
+OBJS := init.o src/kaldi_mpe.o src/kaldi_mmi.o src/init.o
LIBS := libkaldiseq.so
INCLUDE := -I $(LUA_INCDIR) -I $(INC_PATH) -DLUA_USE_APICHECK
@@ -29,10 +29,12 @@ $(OBJ_DIR) $(LUA_DIR) $(OBJ_SUBDIR) $(LUA_SUBDIR):
-mkdir -p $@
$(LUA_DIR)/%.lua: %.lua
cp $< $@
-$(LIBS): $(OBJ_DIR)/src/kaldi_mpe.o $(OBJ_DIR)/init.o $(OBJ_DIR)/src/init.o
- gcc -shared -fPIC -o $@ $(OBJ_DIR)/src/kaldi_mpe.o $(OBJ_DIR)/init.o $(OBJ_DIR)/src/init.o -lstdc++ -Wl,-rpath=$(LIB_PATH) -L$(LIB_PATH) -lnervcore -lluaT $(KL)
+$(LIBS): $(OBJ_DIR)/src/kaldi_mpe.o $(OBJ_DIR)/src/kaldi_mmi.o $(OBJ_DIR)/init.o $(OBJ_DIR)/src/init.o
+ gcc -shared -fPIC -o $@ $(OBJ_DIR)/src/kaldi_mpe.o $(OBJ_DIR)/src/kaldi_mmi.o $(OBJ_DIR)/init.o $(OBJ_DIR)/src/init.o -lstdc++ -Wl,-rpath=$(LIB_PATH) -L$(LIB_PATH) -lnervcore -lluaT $(KL)
$(OBJ_DIR)/src/kaldi_mpe.o: src/kaldi_mpe.cpp
g++ -o $@ -c $< -DHAVE_ATLAS $(KALDIINCLUDE) -g -fPIC $(INCLUDE) -DKALDI_DOUBLEPRECISION=0 -msse2 -DHAVE_POSIX_MEMALIGN
+$(OBJ_DIR)/src/kaldi_mmi.o: src/kaldi_mmi.cpp
+ g++ -o $@ -c $< -DHAVE_ATLAS $(KALDIINCLUDE) -g -fPIC $(INCLUDE) -DKALDI_DOUBLEPRECISION=0 -msse2 -DHAVE_POSIX_MEMALIGN
$(OBJ_DIR)/%.o: %.c
gcc -o $@ -c $< -g $(INCLUDE) -fPIC
clean: