forked from OAID/Tengine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (31 loc) · 866 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
INC_DIR+=-I$(shell pwd)/../core/include
INC_DIR+=-I$(shell pwd)/../operator/include
INC_DIR+=-I$(shell pwd)/../include
INC_DIR+=-I$(shell pwd)/include
MODULE_DIR+=
ifeq ($(CONFIG_CAFFE_SERIALIZER),y)
obj-y+=caffe/
COMMON_CFLAGS+= -DCONFIG_CAFFE_SERIALIZER
endif
ifeq ($(CONFIG_MXNET_SERIALIZER),y)
obj-y+=mxnet/
COMMON_CFLAGS+= -DCONFIG_MXNET_SERIALIZER
endif
ifeq ($(CONFIG_ONNX_SERIALIZER),y)
obj-y+=onnx/
COMMON_CFLAGS+= -DCONFIG_ONNX_SERIALIZER
endif
ifeq ($(CONFIG_TF_SERIALIZER),y)
obj-y+=tensorflow/
COMMON_CFLAGS+= -DCONFIG_TF_SERIALIZER
endif
ifeq ($(CONFIG_TENGINE_SERIALIZER),y)
obj-y+=tengine/
COMMON_CFLAGS+= -DCONFIG_TENGINE_SERIALIZER
endif
obj-y+=source/
obj-y+=plugin/
CXXFLAGS+=
COMMON_CFLAGS+=$(CONFIG_OPT_CFLAGS)
COMMON_CFLAGS+= -Wall -g -I$(shell pwd)/include -fPIC $(INC_DIR) -Werror
install: