1# Copyright (C) 2012-2014 NXP Semiconductors 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15LOCAL_PATH := $(call my-dir) 16include $(CLEAR_VARS) 17LOCAL_MODULE := nfc_nci.$(TARGET_DEVICE) 18LOCAL_MODULE_RELATIVE_PATH := hw 19LOCAL_SRC_FILES := $(call all-subdir-c-files) $(call all-subdir-cpp-files) 20LOCAL_SHARED_LIBRARIES := liblog libcutils libhardware_legacy libdl libhardware 21 22LOCAL_C_INCLUDES += \ 23 $(LOCAL_PATH)/utils \ 24 $(LOCAL_PATH)/inc \ 25 $(LOCAL_PATH)/common \ 26 $(LOCAL_PATH)/dnld \ 27 $(LOCAL_PATH)/hal \ 28 $(LOCAL_PATH)/log \ 29 $(LOCAL_PATH)/tml \ 30 $(LOCAL_PATH)/self-test 31 32#variables for NFC_NXP_CHIP_TYPE 33PN547C2 := 1 34PN548C2 := 2 35 36ifeq ($(PN547C2),1) 37LOCAL_CFLAGS += -DPN547C2=1 38endif 39ifeq ($(PN548C2),2) 40LOCAL_CFLAGS += -DPN548C2=2 41endif 42 43#### Select the CHIP #### 44ifeq ($(NFC_NXP_CHIP_TYPE),PN547C2) 45LOCAL_CFLAGS += -DNFC_NXP_CHIP_TYPE=PN547C2 46else 47LOCAL_CFLAGS += -DNFC_NXP_CHIP_TYPE=PN548C2 48endif 49 50LOCAL_CFLAGS += -DANDROID \ 51 -DNXP_UICC_ENABLE -DNXP_HW_SELF_TEST 52LOCAL_CFLAGS += -DNFC_NXP_HFO_SETTINGS=FALSE 53#LOCAL_CFLAGS += -DFELICA_CLT_ENABLE 54 55include $(BUILD_SHARED_LIBRARY) 56