1# Copyright 2006 The Android Open Source Project 2 3LOCAL_PATH:= $(call my-dir) 4include $(CLEAR_VARS) 5 6# common settings for all ASR builds, exports some variables for sub-makes 7include $(ASR_MAKE_DIR)/Makefile.defs 8 9common_SRC_FILES:= \ 10 src/ArrayList.c \ 11 src/ArrayListImpl.c \ 12 src/ESR_ReturnCode.c \ 13 src/LCHAR.c \ 14 src/pcputimer.c \ 15 src/pcrc.c \ 16 src/pendian.c \ 17 src/PFileWrap.c \ 18 src/$(ASR_TARGET_OS)/PFileWrap$(ASR_TARGET_OS)_OS_Specific.c \ 19 src/phashtable.c \ 20 src/pLastError.c \ 21 src/plog.c \ 22 src/pmalloc.c \ 23 src/pmemory.c \ 24 src/pmemory_ext.c \ 25 src/PStackSize.c \ 26 src/ptimestamp.c \ 27 src/ptypes.c \ 28# src/ptimer.c \ 29 30common_C_INCLUDES := \ 31 $(ASR_ROOT_DIR)/portable/include \ 32 $(ASR_ROOT_DIR)/shared/include \ 33 34common_CFLAGS := \ 35 -DPORTABLE_EXPORTS \ 36 37common_CFLAGS += \ 38 $(ASR_GLOBAL_DEFINES) \ 39 $(ASR_GLOBAL_CPPFLAGS) \ 40 41common_SHARED_LIBRARIES := 42 43common_TARGET:= libESR_Portable 44 45 46# For the host 47# ===================================================== 48 49include $(CLEAR_VARS) 50 51LOCAL_SRC_FILES := $(common_SRC_FILES) 52LOCAL_C_INCLUDES := $(common_C_INCLUDES) 53LOCAL_CFLAGS += $(common_CFLAGS) 54 55#LOCAL_SHARED_LIBRARIES := $(common_SHARED_LIBRARIES) 56 57LOCAL_MODULE := $(common_TARGET) 58 59include $(BUILD_HOST_SHARED_LIBRARY) 60 61 62# For the device 63# ===================================================== 64 65include $(CLEAR_VARS) 66 67LOCAL_SRC_FILES := $(common_SRC_FILES) 68LOCAL_C_INCLUDES := $(common_C_INCLUDES) 69LOCAL_CFLAGS += $(common_CFLAGS) 70 71LOCAL_SHARED_LIBRARIES := libcutils 72 73LOCAL_MODULE := $(common_TARGET) 74 75include $(BUILD_STATIC_LIBRARY) 76