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/Nametag.c \ 11 src/NametagImpl.c \ 12 src/Nametags.c \ 13 src/NametagsImpl.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 $(ASR_ROOT_DIR)/seti/sltsEngine/include \ 29 30 common_CFLAGS := \ 31 -DSREC_NAMETAG_EXPORTS \ 32 -DUSE_TTP \ 33 -DUSE_FSM_DICT \ 34 35 common_CFLAGS += \ 36 $(ASR_GLOBAL_DEFINES) \ 37 $(ASR_GLOBAL_CPPFLAGS) \ 38 39 common_SHARED_LIBRARIES := \ 40 libESR_Shared \ 41 libESR_Portable \ 42 libSR_Vocabulary \ 43 44 common_TARGET:= libSR_Nametag 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