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_Grammar.c \ 11 src/SR_GrammarImpl.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/AcousticModels/include \ 18 $(ASR_ROOT_DIR)/srec/AcousticState/include \ 19 $(ASR_ROOT_DIR)/srec/EventLog/include \ 20 $(ASR_ROOT_DIR)/srec/Grammar/include \ 21 $(ASR_ROOT_DIR)/srec/Nametag/include \ 22 $(ASR_ROOT_DIR)/srec/Recognizer/include \ 23 $(ASR_ROOT_DIR)/srec/Semproc/include \ 24 $(ASR_ROOT_DIR)/srec/Session/include \ 25 $(ASR_ROOT_DIR)/srec/Vocabulary/include \ 26 $(ASR_ROOT_DIR)/seti/sltsEngine/include \ 27 28 common_CFLAGS := \ 29 -DSREC_GRAMMAR_EXPORTS \ 30 -DUSE_TTP \ 31 -DUSE_FSM_DICT \ 32 33 common_CFLAGS += \ 34 $(ASR_GLOBAL_DEFINES) \ 35 $(ASR_GLOBAL_CPPFLAGS) \ 36 37 common_SHARED_LIBRARIES := \ 38 libESR_Shared \ 39 libESR_Portable \ 40 libSR_Core \ 41 libSR_Semproc \ 42 libSR_Vocabulary \ 43 44 common_TARGET:= libSR_Grammar 45 46 47 # For the host 48 # ===================================================== 49 50 include $(CLEAR_VARS) 51 52 LOCAL_SRC_FILES := $(common_SRC_FILES) 53 LOCAL_C_INCLUDES := $(common_C_INCLUDES) 54 LOCAL_CFLAGS += $(common_CFLAGS) 55 56 LOCAL_SHARED_LIBRARIES := $(common_SHARED_LIBRARIES) 57 58 LOCAL_MODULE := $(common_TARGET) 59 60 include $(BUILD_HOST_SHARED_LIBRARY) 61 62 63 # For the device 64 # ===================================================== 65 66 include $(CLEAR_VARS) 67 68 LOCAL_SRC_FILES := $(common_SRC_FILES) 69 LOCAL_C_INCLUDES := $(common_C_INCLUDES) 70 LOCAL_CFLAGS += $(common_CFLAGS) 71 72 LOCAL_MODULE := $(common_TARGET) 73 74 include $(BUILD_STATIC_LIBRARY) 75