From a74183ddb4ab8383bfe214b3745eb8a0a99ee47a Mon Sep 17 00:00:00 2001 From: Determinant Date: Thu, 25 Jun 2015 12:56:45 +0800 Subject: let HTK I/O implementation be a single package --- Makefile | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile deleted file mode 100644 index a077df8..0000000 --- a/Makefile +++ /dev/null @@ -1,39 +0,0 @@ -.PHONY: tnet -SHELL := /bin/bash -BUILD_DIR := $(CURDIR)/build -OBJS := init.o tnet_io/cwrapper.o tnet_io/init.o -LIBS := libspeech.so -LUA_LIBS := init.lua -INCLUDE := -I $(LUA_INCDIR) -DLUA_USE_APICHECK - -SUBDIR := tnet_io -OBJ_DIR := $(BUILD_DIR)/objs -LUA_DIR = $(INST_LUADIR)/speech - -OBJS := $(addprefix $(OBJ_DIR)/,$(OBJS)) -LIBS := $(addprefix $(INST_LIBDIR)/,$(LIBS)) -OBJ_SUBDIR := $(addprefix $(OBJ_DIR)/,$(SUBDIR)) -LUA_SUBDIR := $(addprefix $(LUA_DIR)/,$(SUBDIR)) -LUA_LIBS := $(addprefix $(LUA_DIR)/,$(LUA_LIBS)) -LIB_PATH := $(LUA_BINDIR)/../lib - -build: $(OBJ_DIR) $(OBJ_SUBDIR) $(OBJS) tnet $(OBJ_DIR)/tnet_io/test -install: $(LUA_DIR) $(LUA_SUBDIR) $(LUA_LIBS) $(LIBS) - -$(OBJ_DIR) $(LUA_DIR) $(OBJ_SUBDIR) $(LUA_SUBDIR): - -mkdir -p $@ -$(LUA_DIR)/%.lua: %.lua - cp $< $@ -$(LIBS): $(OBJ_DIR)/tnet_io/cwrapper.o $(OBJ_DIR)/init.o $(OBJ_DIR)/tnet_io/init.o $(OBJ_DIR)/tnet_io/libKaldiLib.a - gcc -shared -o $@ $(OBJ_DIR)/tnet_io/cwrapper.o $(OBJ_DIR)/init.o $(OBJ_DIR)/tnet_io/libKaldiLib.a $(OBJ_DIR)/tnet_io/init.o -lstdc++ -Wl,-rpath=$(LIB_PATH) -L$(LIB_PATH) -lnervcore -lluaT -$(OBJ_DIR)/tnet_io/test: $(OBJ_DIR)/tnet_io/cwrapper.o $(OBJ_DIR)/tnet_io/test.o $(OBJ_DIR)/tnet_io/libKaldiLib.a - gcc -o $@ $^ -Wl,-rpath=$(LIB_PATH) -L$(LIB_PATH) -lnervcore -Wl,-rpath=$(LUA_LIBDIR) -L$(LUA_LIBDIR) -lluajit-5.1 -lstdc++ -lm -$(OBJ_DIR)/tnet_io/cwrapper.o: tnet_io/cwrapper.cpp - g++ -o $@ -c $< -DHAVE_ATLAS -I tnet_io/KaldiLib/ -g -fPIC $(INCLUDE) -$(OBJ_DIR)/%.o: %.c - gcc -o $@ -c $< -g $(INCLUDE) -fPIC -clean: - -rm $(OBJ_DIR)/tnet_io/*.o - $(MAKE) -C tnet_io/KaldiLib/ clean -tnet: - $(MAKE) -C tnet_io/KaldiLib/ OBJ_DIR=$(OBJ_DIR)/tnet_io -- cgit v1.2.3-70-g09d2