# This file is part of hayes-ril. # # Copyright (C) 2012 Paul Kocialkowski # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) hayes_ril_files := \ hayes-ril.c \ at.c \ device.c ifeq ($(TARGET_DEVICE),gta04) hayes_ril_device_files := device/gta04/gta04.c LOCAL_C_INCLUDES += $(LOCAL_PATH)/device/gta04/ endif ifeq ($(TARGET_DEVICE),passion) hayes_ril_device_files := device/passion/passion.c LOCAL_C_INCLUDES += $(LOCAL_PATH)/device/passion/ endif ifeq ($(TARGET_DEVICE),dream_sapphire) hayes_ril_device_files := device/dream_sapphire/dream_sapphire.c LOCAL_C_INCLUDES += $(LOCAL_PATH)/device/dream_sapphire/ endif LOCAL_SRC_FILES := $(hayes_ril_files) $(hayes_ril_device_files) LOCAL_SHARED_LIBRARIES += libcutils libutils libril LOCAL_PRELINK_MODULE := false LOCAL_C_INCLUDES += $(KERNEL_HEADERS) $(LOCAL_PATH) LOCAL_LDLIBS += -lpthread LOCAL_CFLAGS += -DRIL_SHLIB -D_GNU_SOURCE LOCAL_MODULE_TAGS := optional LOCAL_MODULE:= libhayes-ril include $(BUILD_SHARED_LIBRARY)