diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 39 |
1 files changed, 0 insertions, 39 deletions
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 |