-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (36 loc) · 782 Bytes
/
Makefile
File metadata and controls
40 lines (36 loc) · 782 Bytes
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
39
40
TARGET = libnn.a
CLASSES = \
nn_arch \
nn_batchNormLayer \
nn_convLayer \
nn_coderLayer \
nn_dim \
nn_encdecLayer \
nn_engine \
nn_factLayer \
nn_lanczosLayer \
nn_lanczosResampler \
nn_layer \
nn_loss \
nn_resLayer \
nn_reshapeLayer \
nn_skipLayer \
nn_tensorStats \
nn_tensor \
nn_urrdbBlockLayer \
nn_urrdbLayer \
nn_urrdbNodeLayer \
nn_weightLayer
SOURCE = $(CLASSES:%=%.c)
OBJECTS = $(SOURCE:.c=.o)
HFILES = $(CLASSES:%=%.h)
OPT = -O2 -Wall
CFLAGS = $(OPT)
LDFLAGS = -lm
AR = ar
all: $(TARGET)
$(TARGET): $(OBJECTS)
$(AR) rcs $@ $(OBJECTS)
clean:
rm -f $(OBJECTS) *~ \#*\# $(TARGET)
$(OBJECTS): $(HFILES)