1# Copyright 2006 The Android Open Source Project
2
3LOCAL_PATH:= $(call my-dir)
4include $(CLEAR_VARS)
5
6# common settings for all ASR builds, exports some variables for sub-makes
7include $(ASR_MAKE_DIR)/Makefile.defs
8
9LOCAL_SRC_FILES:= \
10	make_cfst.cpp \
11
12LOCAL_C_INCLUDES := \
13	$(ASR_ROOT_DIR)/tools/thirdparty/OpenFst \
14	$(ASR_ROOT_DIR)/shared/include \
15	$(ASR_ROOT_DIR)/portable/include \
16	$(ASR_ROOT_DIR)/srec/include \
17	$(ASR_ROOT_DIR)/srec/EventLog/include \
18	$(ASR_ROOT_DIR)/srec/Grammar/include \
19	$(ASR_ROOT_DIR)/srec/Session/include \
20	$(ASR_ROOT_DIR)/srec/Semproc/include \
21	$(ASR_ROOT_DIR)/srec/Vocabulary/include \
22
23LOCAL_CFLAGS += \
24	$(ASR_GLOBAL_DEFINES) \
25	$(ASR_GLOBAL_CPPFLAGS) \
26
27LOCAL_CLANG := true
28
29LOCAL_CPPFLAGS += -std=c++11
30
31LOCAL_SHARED_LIBRARIES := \
32	libESR_Shared \
33	libESR_Portable \
34	libSR_Core \
35	libSR_AcousticModels \
36	libSR_AcousticState \
37	libSR_EventLog \
38	libSR_G2P \
39	libSR_Grammar \
40	libSR_Nametag \
41	libSR_Recognizer \
42	libSR_Semproc \
43	libSR_Session \
44	libSR_Vocabulary \
45	libfst \
46
47LOCAL_LDLIBS := \
48	-lm \
49	-lpthread
50ifneq ($(HOST_OS),freebsd)
51LOCAL_LDLIBS += -ldl
52endif
53
54LOCAL_MODULE:= make_cfst
55
56LOCAL_32_BIT_ONLY := true
57
58include external/libcxx/libcxx.mk
59
60include $(BUILD_HOST_EXECUTABLE)
61