forked from OAID/Tengine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (24 loc) · 687 Bytes
/
Makefile
File metadata and controls
34 lines (24 loc) · 687 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
obj-y+=operator/
obj-y+=lib/
obj-y+=engine/
obj-y+=plugin/
INC_DIR+=-I$(shell pwd)/../core/include
INC_DIR+=-I$(shell pwd)/../include -I$(shell pwd)/../operator/include
INC_DIR+=-I$(shell pwd)/include
COMMON_CFLAGS+=$(CONFIG_OPT_CFLAGS)
COMMON_CFLAGS+= -Wall -g -fPIC $(INC_DIR) -Werror
ifeq ($(CONFIG_CAFFE_REF),y)
COMMON_CFLAGS+= -DCONFIG_CAFFE_REF=1
endif
ifeq ($(CONFIG_ARCH_ARM64),y)
COMMON_CFLAGS+= -DCONFIG_ARCH_ARM64=1
endif
ifeq ($(CONFIG_ARCH_BLAS),y)
COMMON_CFLAGS+=-DCONFIG_ARCH_BLAS=1
endif
ifeq ($(CONFIG_ARCH_ARM32),y)
COMMON_CFLAGS+= -DCONFIG_ARCH_ARM32=1
CC+= -march=armv7-a -mfpu=neon
CXX+=-march=armv7-a -mfpu=neon
endif
install: