File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,13 @@ include ../config.mk
6
6
INCLUDE_DIR =../include
7
7
IFLAGS = -I $(INCLUDE_DIR )
8
8
9
- all : utils.o fastgrnn.o classifier.o rnnpool.o quantized_utils.o quantized_fastgrnn.o quantized_rnnpool.o quantized_mbconv.o
9
+ all : utils.o fastgrnn.o classifier.o rnnpool.o quantized_utils.o quantized_fastgrnn.o quantized_rnnpool.o quantized_mbconv.o conv1d.o conv_utils.o
10
+
11
+ conv_utils.o : conv_utils.c
12
+ $(CC ) -o $@ $(IFLAGS ) $(CFLAGS ) -c $^
13
+
14
+ conv1d.o : conv1d.c
15
+ $(CC ) -o $@ $(IFLAGS ) $(CFLAGS ) -c $^
10
16
11
17
utils.o : utils.c
12
18
$(CC ) -o $@ $(IFLAGS ) $(CFLAGS ) -c $^
Original file line number Diff line number Diff line change @@ -7,7 +7,17 @@ INCLUDE_DIR=../include
7
7
SRC_DIR =../src
8
8
IFLAGS = -I $(INCLUDE_DIR )
9
9
10
- all : test_fastgrnn_lr test_rnnpool test_quantized_utils test_quantized_fastgrnn test_quantized_rnnpool test_quantized_mbconv
10
+ all : test_conv1d test_conv1d_depth test_conv1d_lr test_conv1d_lr_depth test_fastgrnn_lr test_rnnpool test_quantized_utils test_quantized_fastgrnn test_quantized_rnnpool test_quantized_mbconv
11
+
12
+ CONV1D_DIR =conv1d
13
+ test_conv1d : $(CONV1D_DIR ) /conv1d_regular/test_conv1d.c $(SRC_DIR ) /conv_utils.o $(SRC_DIR ) /conv1d.o
14
+ $(CC ) -o $@ $^ $(IFLAGS ) $(CFLAGS ) -lm
15
+ test_conv1d_depth : $(CONV1D_DIR ) /conv1d_depthwise/test_conv1d_depth.c $(SRC_DIR ) /conv_utils.o $(SRC_DIR ) /conv1d.o
16
+ $(CC ) -o $@ $^ $(IFLAGS ) $(CFLAGS ) -lm
17
+ test_conv1d_lr : $(CONV1D_DIR ) /conv1d_lr/test_conv1d_lr.c $(SRC_DIR ) /conv_utils.o $(SRC_DIR ) /conv1d.o
18
+ $(CC ) -o $@ $^ $(IFLAGS ) $(CFLAGS ) -lm
19
+ test_conv1d_lr_depth : $(CONV1D_DIR ) /conv1d_lr_depthwise/test_conv1d_lr_depth.c $(SRC_DIR ) /conv_utils.o $(SRC_DIR ) /conv1d.o
20
+ $(CC ) -o $@ $^ $(IFLAGS ) $(CFLAGS ) -lm
11
21
12
22
FASTGRNN_DIR =fastgrnn
13
23
test_fastgrnn_lr : $(FASTGRNN_DIR ) /test_fastgrnn_lr.c $(SRC_DIR ) /utils.o $(SRC_DIR ) /fastgrnn.o $(SRC_DIR ) /classifier.o
@@ -32,7 +42,7 @@ test_quantized_mbconv: $(MBCONV_DIR)/test_quantized_mbconv.c $(SRC_DIR)/quantize
32
42
.PHONY : clean cleanest
33
43
34
44
clean :
35
- rm -f * .o * .gch test_fastgrnn_lr test_rnnpool test_quantized_utils test_quantized_fastgrnn test_quantized_rnnpool
45
+ rm -f * .o * .gch test_conv1d test_conv1d_depth test_conv1d_lr test_conv1d_lr_depth test_fastgrnn_lr test_rnnpool test_quantized_utils test_quantized_fastgrnn test_quantized_rnnpool test_quantized_mbconv
36
46
37
47
cleanest : clean
38
48
rm * ~
You can’t perform that action at this time.
0 commit comments