-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
38 lines (28 loc) · 801 Bytes
/
Makefile
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
CXXFLAGS += -std=c++11 -I ../ -L ../ebt -L ../la -L ../autodiff -L ../opt -L ../speech
NVCCFLAGS += -std=c++11 -I ../ -L ../ebt -L ../la -L ../autodiff -L ../opt -L ../speech
AR = gcc-ar
obj = nn.o autoenc-fc.o cnn.o tensor-tree.o lstm.o lstm-frame.o lstm-tensor-tree.o cnn.o cnn-frame.o seq2seq.o
.PHONY: all clean
all: libnn.a
gpu: libnngpu.a
clean:
-rm *.o
-rm libnn.a
libnn.a: $(obj)
$(AR) rcs $@ $^
libnngpu.a: $(obj) tensor-tree-gpu.o nn-gpu.o
$(AR) rcs $@ $^
nn.o: nn.h
cnn.o: cnn.h
lstm.o: lstm.h
lstm-seg.o: lstm-seg.h
seq2seq.o: seq2seq.h
lstm-frame.o: lstm-frame.h
gru.o: gru.h
pred.o: pred.h
residual.o: residual.h
tensor-tree.o: tensor-tree.h
tensor-tree-gpu.o: tensor-tree-gpu.cu
nvcc $(NVCCFLAGS) -c tensor-tree-gpu.cu
nn-gpu.o: nn-gpu.cu
nvcc $(NVCCFLAGS) -c nn-gpu.cu