1 # Copyright 2006 The Android Open Source Project 2 3 LOCAL_PATH:= $(call my-dir) 4 include $(CLEAR_VARS) 5 6 # common settings for all ASR builds, exports some variables for sub-makes 7 include $(ASR_MAKE_DIR)/Makefile.defs 8 9 common_SRC_FILES:= \ 10 src/EventLog.c \ 11 src/EventLogImpl.c \ 12 13 common_C_INCLUDES := \ 14 $(ASR_ROOT_DIR)/portable/include \ 15 $(ASR_ROOT_DIR)/shared/include \ 16 $(ASR_ROOT_DIR)/srec/include \ 17 $(ASR_ROOT_DIR)/srec/EventLog/include \ 18 $(ASR_ROOT_DIR)/srec/Session/include \ 19 20 common_CFLAGS := \ 21 -DSREC_EVENTLOG_EXPORTS \ 22 23 common_CFLAGS += \ 24 $(ASR_GLOBAL_DEFINES) \ 25 $(ASR_GLOBAL_CPPFLAGS) \ 26 27 common_SHARED_LIBRARIES := \ 28 libESR_Shared \ 29 libESR_Portable \ 30 31 common_TARGET:= libSR_EventLog 32 33 34 # For the host 35 # ===================================================== 36 37 include $(CLEAR_VARS) 38 39 LOCAL_SRC_FILES := $(common_SRC_FILES) 40 LOCAL_C_INCLUDES := $(common_C_INCLUDES) 41 LOCAL_CFLAGS += $(common_CFLAGS) 42 43 LOCAL_SHARED_LIBRARIES := $(common_SHARED_LIBRARIES) 44 45 LOCAL_MODULE := $(common_TARGET) 46 47 include $(BUILD_HOST_SHARED_LIBRARY) 48 49 50 # For the device 51 # ===================================================== 52 53 include $(CLEAR_VARS) 54 55 LOCAL_SRC_FILES := $(common_SRC_FILES) 56 LOCAL_C_INCLUDES := $(common_C_INCLUDES) 57 LOCAL_CFLAGS += $(common_CFLAGS) 58 59 LOCAL_MODULE := $(common_TARGET) 60 61 include $(BUILD_STATIC_LIBRARY) 62