Home | History | Annotate | Download | only in Semproc
      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/ExpressionParser.c \
     11 	src/ExpressionEvaluator.c \
     12 	src/SymbolTable.c \
     13 	src/LexicalAnalyzer.c \
     14 	src/SemanticResult.c \
     15 	src/SemanticResultImpl.c \
     16 	src/SemanticGraph.c \
     17 	src/SemanticGraphImpl.c \
     18 	src/SemanticProcessor.c \
     19 	src/SemanticProcessorImpl.c \
     20 
     21 common_C_INCLUDES := \
     22 	$(ASR_ROOT_DIR)/portable/include \
     23 	$(ASR_ROOT_DIR)/shared/include \
     24 	$(ASR_ROOT_DIR)/srec/include \
     25 	$(ASR_ROOT_DIR)/srec/AcousticModels/include \
     26 	$(ASR_ROOT_DIR)/srec/AcousticState/include \
     27 	$(ASR_ROOT_DIR)/srec/EventLog/include \
     28 	$(ASR_ROOT_DIR)/srec/Grammar/include \
     29 	$(ASR_ROOT_DIR)/srec/Nametag/include \
     30 	$(ASR_ROOT_DIR)/srec/Recognizer/include \
     31 	$(ASR_ROOT_DIR)/srec/Semproc/include \
     32 	$(ASR_ROOT_DIR)/srec/Session/include \
     33 	$(ASR_ROOT_DIR)/srec/Vocabulary/include \
     34 
     35 common_CFLAGS := \
     36 	-DSREC_SEMPROC_EXPORTS \
     37 
     38 common_CFLAGS += \
     39 	$(ASR_GLOBAL_DEFINES) \
     40 	$(ASR_GLOBAL_CPPFLAGS) \
     41 
     42 common_SHARED_LIBRARIES := \
     43 	libESR_Shared \
     44 	libESR_Portable \
     45 	libSR_Core \
     46 
     47 common_TARGET:= libSR_Semproc
     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