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/SR_Session.c \ 11 12 common_C_INCLUDES := \ 13 $(ASR_ROOT_DIR)/portable/include \ 14 $(ASR_ROOT_DIR)/shared/include \ 15 $(ASR_ROOT_DIR)/srec/include \ 16 $(ASR_ROOT_DIR)/srec/AcousticModels/include \ 17 $(ASR_ROOT_DIR)/srec/AcousticState/include \ 18 $(ASR_ROOT_DIR)/srec/EventLog/include \ 19 $(ASR_ROOT_DIR)/srec/Grammar/include \ 20 $(ASR_ROOT_DIR)/srec/Nametag/include \ 21 $(ASR_ROOT_DIR)/srec/Semproc/include \ 22 $(ASR_ROOT_DIR)/srec/Session/include \ 23 $(ASR_ROOT_DIR)/srec/Vocabulary/include \ 24 25 common_CFLAGS := \ 26 -DSREC_SESSION_EXPORTS \ 27 28 common_CFLAGS += \ 29 $(ASR_GLOBAL_DEFINES) \ 30 $(ASR_GLOBAL_CPPFLAGS) \ 31 32 common_SHARED_LIBRARIES := \ 33 libESR_Shared \ 34 libESR_Portable \ 35 libSR_AcousticModels \ 36 libSR_AcousticState \ 37 libSR_EventLog \ 38 libSR_Grammar \ 39 libSR_Nametag \ 40 41 common_TARGET:= libSR_Session 42 43 44 # For the host 45 # ===================================================== 46 47 include $(CLEAR_VARS) 48 49 LOCAL_SRC_FILES := $(common_SRC_FILES) 50 LOCAL_C_INCLUDES := $(common_C_INCLUDES) 51 LOCAL_CFLAGS += $(common_CFLAGS) 52 53 LOCAL_SHARED_LIBRARIES := $(common_SHARED_LIBRARIES) 54 55 LOCAL_MODULE := $(common_TARGET) 56 57 include $(BUILD_HOST_SHARED_LIBRARY) 58 59 60 # For the device 61 # ===================================================== 62 63 include $(CLEAR_VARS) 64 65 LOCAL_SRC_FILES := $(common_SRC_FILES) 66 LOCAL_C_INCLUDES := $(common_C_INCLUDES) 67 LOCAL_CFLAGS += $(common_CFLAGS) 68 69 LOCAL_MODULE := $(common_TARGET) 70 71 include $(BUILD_STATIC_LIBRARY) 72