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/Recognizer.c \ 11 src/RecognizerImpl.c \ 12 src/RecognizerResult.c \ 13 src/RecognizerResultImpl.c \ 14 15 common_C_INCLUDES := \ 16 $(ASR_ROOT_DIR)/portable/include \ 17 $(ASR_ROOT_DIR)/shared/include \ 18 $(ASR_ROOT_DIR)/srec/include \ 19 $(ASR_ROOT_DIR)/srec/AcousticModels/include \ 20 $(ASR_ROOT_DIR)/srec/AcousticState/include \ 21 $(ASR_ROOT_DIR)/srec/EventLog/include \ 22 $(ASR_ROOT_DIR)/srec/Grammar/include \ 23 $(ASR_ROOT_DIR)/srec/Nametag/include \ 24 $(ASR_ROOT_DIR)/srec/Recognizer/include \ 25 $(ASR_ROOT_DIR)/srec/Semproc/include \ 26 $(ASR_ROOT_DIR)/srec/Session/include \ 27 $(ASR_ROOT_DIR)/srec/Vocabulary/include \ 28 29 common_CFLAGS := \ 30 -DSREC_RECOGNIZER_EXPORTS \ 31 32 common_CFLAGS += \ 33 $(ASR_GLOBAL_DEFINES) \ 34 $(ASR_GLOBAL_CPPFLAGS) \ 35 36 common_SHARED_LIBRARIES := \ 37 libESR_Shared \ 38 libESR_Portable \ 39 libSR_Core \ 40 libSR_AcousticModels \ 41 libSR_AcousticState \ 42 libSR_EventLog \ 43 libSR_Grammar \ 44 libSR_Nametag \ 45 libSR_Semproc \ 46 47 common_TARGET:= libSR_Recognizer 48 49 50 # For the host 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_SHARED_LIBRARIES := $(common_SHARED_LIBRARIES) 60 61 LOCAL_MODULE := $(common_TARGET) 62 63 include $(BUILD_HOST_SHARED_LIBRARY) 64 65 66 # For the device 67 # ===================================================== 68 69 include $(CLEAR_VARS) 70 71 LOCAL_SRC_FILES := $(common_SRC_FILES) 72 LOCAL_C_INCLUDES := $(common_C_INCLUDES) 73 LOCAL_CFLAGS += $(common_CFLAGS) 74 75 LOCAL_MODULE := $(common_TARGET) 76 77 include $(BUILD_STATIC_LIBRARY) 78