blob: 989f207f873a23357b0ebc65c5fd24a91ab17322 [file] [log] [blame]
nxpandroidf319fe02015-11-17 18:20:13 +05301# function to find all *.cpp files under a directory
2define all-cpp-files-under
3$(patsubst ./%,%, \
4 $(shell cd $(LOCAL_PATH) ; \
5 find $(1) -name "*.cpp" -and -not -name ".*") \
6 )
7endef
8
9
10LOCAL_PATH:= $(call my-dir)
11D_CFLAGS += -DNXP_LDR_SVC_VER_2=TRUE
12######################################
13# Build shared library system/lib/libp61-jcop-kit.so for stack code.
14
15include $(CLEAR_VARS)
16LOCAL_PRELINK_MODULE := false
17LOCAL_ARM_MODE := arm
18LOCAL_MODULE := libp61-jcop-kit
19LOCAL_MODULE_TAGS := optional
20LOCAL_SHARED_LIBRARIES := libhardware_legacy libcutils liblog libdl libhardware
21LOCAL_CFLAGS := $(D_CFLAGS)
22LOCAL_C_INCLUDES := \
23 $(LOCAL_PATH)/include/ \
24 $(LOCAL_PATH)/inc/
25LOCAL_SRC_FILES := \
26 $(call all-c-files-under, src) \
27 $(call all-cpp-files-under, src)
28
29include $(BUILD_SHARED_LIBRARY)
30
31
32######################################
33include $(call all-makefiles-under,$(LOCAL_PATH))