aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/rpi_makefile.inc
blob: 832ef5824bea86a368184bd7e3d17915739e9d46 (plain)
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
# Settings for Raspberry Pi.
ifeq ($(TARGET), RPI)
	ifeq ($(TARGET_ARCH), armv7)
		CXXFLAGS += \
			-march=armv7-a \
			-mfpu=neon-vfpv4 \
			-funsafe-math-optimizations \
			-ftree-vectorize

		CCFLAGS += \
			-march=armv7-a \
			-mfpu=neon-vfpv4 \
			-funsafe-math-optimizations \
			-ftree-vectorize

		LDFLAGS := \
			-Wl,--no-export-dynamic \
			-Wl,--exclude-libs,ALL \
			-Wl,--gc-sections \
			-Wl,--as-needed
	endif

	LIBS := \
	-lstdc++ \
	-lpthread \
	-lm \
	-ldl

	OBJDIR := $(OBJDIR)rpi_$(TARGET_ARCH)/
	LIBDIR := $(LIBDIR)rpi_$(TARGET_ARCH)/
	BINDIR := $(BINDIR)rpi_$(TARGET_ARCH)/
	DEPDIR := $(DEPDIR)rpi_$(TARGET_ARCH)/
endif