Makefile.android.armv7 1.4 KB
Newer Older
Y
Yan Chunwei 已提交
1 2 3 4 5 6 7
ARM_ABI = arm7
export ARM_ABI

include ../Makefile.def

LITE_ROOT=../../../

8
THIRD_PARTY_INCLUDES = -I../../../third_party/gflags/include
Y
Yan Chunwei 已提交
9

10 11 12 13 14
THIRD_PARTY_LIBS = ../../../third_party/gflags/lib/libgflags.a

CXX_INCLUDES = $(INCLUDES) ${THIRD_PARTY_INCLUDES} -I$(LITE_ROOT)/cxx/include

CXX_LIBS = $(THIRD_PARTY_LIBS) -L$(LITE_ROOT)/cxx/lib/ -lpaddle_full_api_shared $(SYSTEM_LIBS)
Y
Yan Chunwei 已提交
15

16
###############################################################
17 18 19
# How to use one of static libaray:                           #
#  `libpaddle_api_full_bundled.a`                             #
#  `libpaddle_api_light_bundled.a`                            #
20
###############################################################
21
# Note: default use lite's shared library.                    #
22
###############################################################
23 24 25 26
# 1. Comment above line using `libpaddle_full_api_shared.so`
# 2. Undo comment below line using `libpaddle_api_full_bundled.a`

#CXX_LIBS = $(THIRD_PARTY_LIBS) $(LITE_ROOT)/cxx/lib/libpaddle_api_full_bundled.a $(SYSTEM_LIBS)
27

Y
Yan Chunwei 已提交
28 29 30 31 32 33 34 35 36
mobilenetv1_full_api: mobilenetv1_full_api.o
	$(CC) $(SYSROOT_LINK) $(CXXFLAGS_LINK) mobilenetv1_full_api.o -o mobilenetv1_full_api  $(CXX_LIBS) $(LDFLAGS)

mobilenetv1_full_api.o: mobilenetv1_full_api.cc
	$(CC) $(SYSROOT_COMPLILE) $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o mobilenetv1_full_api.o -c mobilenetv1_full_api.cc


.PHONY: clean
clean:
37 38
	rm -f mobilenetv1_full_api.o
	rm -f mobilenetv1_full_api