1LOCAL_PATH:= $(call my-dir) 2NFA := src/nfa 3NFC := src/nfc 4HAL := src/hal 5UDRV := src/udrv 6HALIMPL := halimpl/bcm2079x 7D_CFLAGS := -DANDROID -DBUILDCFG=1 \ 8 -Wno-deprecated-register \ 9 -Wno-unused-parameter \ 10 11 12###################################### 13# Build shared library system/lib/libnfc-nci.so for stack code. 14 15include $(CLEAR_VARS) 16LOCAL_ARM_MODE := arm 17LOCAL_MODULE := libnfc-nci 18LOCAL_SHARED_LIBRARIES := libhardware_legacy libcutils liblog libdl libhardware 19LOCAL_CFLAGS := $(D_CFLAGS) 20LOCAL_C_INCLUDES := \ 21 $(LOCAL_PATH)/src/include \ 22 $(LOCAL_PATH)/src/gki/ulinux \ 23 $(LOCAL_PATH)/src/gki/common \ 24 $(LOCAL_PATH)/$(NFA)/include \ 25 $(LOCAL_PATH)/$(NFA)/int \ 26 $(LOCAL_PATH)/$(NFC)/include \ 27 $(LOCAL_PATH)/$(NFC)/int \ 28 $(LOCAL_PATH)/src/hal/include \ 29 $(LOCAL_PATH)/src/hal/int \ 30 $(LOCAL_PATH)/$(HALIMPL)/include 31LOCAL_SRC_FILES := \ 32 $(call all-c-files-under, $(NFA)/ce $(NFA)/dm $(NFA)/ee) \ 33 $(call all-c-files-under, $(NFA)/hci $(NFA)/int $(NFA)/p2p $(NFA)/rw $(NFA)/sys) \ 34 $(call all-c-files-under, $(NFC)/int $(NFC)/llcp $(NFC)/nci $(NFC)/ndef $(NFC)/nfc $(NFC)/tags) \ 35 $(call all-c-files-under, src/adaptation) \ 36 $(call all-cpp-files-under, src/adaptation) \ 37 $(call all-c-files-under, src/gki) \ 38 $(HALIMPL)/adaptation/android_logmsg.cpp \ 39 src/nfca_version.c 40include $(BUILD_SHARED_LIBRARY) 41 42 43###################################### 44# Build shared library system/lib/hw/nfc_nci.*.so for Hardware Abstraction Layer. 45# Android's generic HAL (libhardware.so) dynamically loads this shared library. 46 47include $(CLEAR_VARS) 48LOCAL_MODULE := nfc_nci.bcm2079x.default 49LOCAL_MODULE_RELATIVE_PATH := hw 50LOCAL_SRC_FILES := $(call all-c-files-under, $(HALIMPL)) \ 51 $(call all-cpp-files-under, $(HALIMPL)) \ 52 src/adaptation/CrcChecksum.cpp \ 53 src//nfca_version.c 54LOCAL_SHARED_LIBRARIES := liblog libcutils libhardware_legacy 55LOCAL_C_INCLUDES := \ 56 $(LOCAL_PATH)/$(HALIMPL)/include \ 57 $(LOCAL_PATH)/$(HALIMPL)/gki/ulinux \ 58 $(LOCAL_PATH)/$(HALIMPL)/gki/common \ 59 $(LOCAL_PATH)/$(HAL)/include \ 60 $(LOCAL_PATH)/$(HAL)/int \ 61 $(LOCAL_PATH)/src/include \ 62 $(LOCAL_PATH)/$(NFC)/include \ 63 $(LOCAL_PATH)/$(NFA)/include \ 64 $(LOCAL_PATH)/$(UDRV)/include 65LOCAL_CFLAGS := $(D_CFLAGS) -DNFC_HAL_TARGET=TRUE -DNFC_RW_ONLY=TRUE 66include $(BUILD_SHARED_LIBRARY) 67 68 69###################################### 70include $(call all-makefiles-under,$(LOCAL_PATH)) 71