summaryrefslogtreecommitdiff
path: root/tnet_io/Makefile
blob: 9389c8ca19fe6fc578abf3554c959cef7628f8cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
.PHONY: tnet
all: tnet $(OBJ_DIR)/test
$(OBJ_DIR)/test: $(OBJ_DIR)/cwrapper.o $(OBJ_DIR)/test.o $(OBJ_DIR)/libKaldiLib.a
	g++ -o $@ $^ -Wl,-rpath=../../build/objs/ -L../../build/objs/ -lnerv -Wl,-rpath=../../build/luajit-2.0/lib -L../../build/luajit-2.0/lib -lluajit-5.1
$(OBJ_DIR)/cwrapper.o: cwrapper.cpp
	g++ -o $@ -c $< -DHAVE_ATLAS -I KaldiLib/ -g
$(OBJ_DIR)/%.o: %.c
	g++ -o $@ -c $< -g
clean:
	-rm $(OBJ_DIR)/*.o
	$(MAKE) -C KaldiLib/ clean
tnet:
	$(MAKE) -C KaldiLib/