• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
9common_SRC_FILES:= \
10	acc_basi.c \
11	cnfd_scr.c \
12	par_basi.c \
13	pat_basi.c \
14	rec_basi.c \
15	rec_load.c \
16	rec_nbes.c \
17	rec_resu.c \
18	syn_srec.c \
19	utt_basi.c \
20	utt_data.c \
21	utt_proc.c \
22	voc_basi.c \
23	\
24	../cfront/ca_cms.c \
25	../cfront/ca_front.c \
26	../cfront/ca_wave.c \
27	../cfront/cheldsp4.c \
28	../cfront/chelfep.c \
29	../cfront/chelmel4.c \
30	../cfront/frontobj.c \
31	../cfront/frontpar.c \
32	../cfront/log_tabl.c \
33	../cfront/sp_fft.c \
34	../cfront/spec_anl.c \
35	../cfront/wav_acc.c \
36	\
37	../clib/cnorm_tr.c \
38	../clib/fpi_tgt.c \
39	../clib/imeld_rd.c \
40	../clib/imeld_tr.c \
41	../clib/jacobi.c \
42	../clib/log_add.c \
43	../clib/matrix_i.c \
44	../clib/matx_ops.c \
45	../clib/specnorm.c \
46	../clib/srec_arb.c \
47	../clib/swicms.c \
48	../clib/swimodel.c \
49	../clib/voc_read.c \
50	../clib/voicing.c \
51	\
52	../crec/astar.c \
53	../crec/astar_pphash.c \
54	../crec/c47mulsp.c \
55	../crec/get_fram.c \
56	../crec/priority_q.c \
57	../crec/rec_norm.c \
58	../crec/srec.c \
59	../crec/srec_context.c \
60	../crec/srec_debug.c \
61	../crec/srec_eosd.c \
62	../crec/srec_initialize.c \
63	../crec/srec_results.c \
64	../crec/srec_stats.c \
65	../crec/srec_tokens.c \
66	../crec/text_parser.c \
67	../crec/word_lattice.c \
68#	../crec/comp_stats.c \
69
70common_C_INCLUDES := \
71	$(ASR_ROOT_DIR)/portable/include \
72	$(ASR_ROOT_DIR)/shared/include \
73	$(ASR_ROOT_DIR)/srec/include \
74	$(ASR_ROOT_DIR)/srec/clib \
75	$(ASR_ROOT_DIR)/srec/cfront \
76
77common_CFLAGS += \
78	$(ASR_GLOBAL_DEFINES) \
79	$(ASR_GLOBAL_CPPFLAGS) \
80
81common_SHARED_LIBRARIES := \
82	libESR_Shared \
83	libESR_Portable \
84
85common_STATIC_LIBRARIES := \
86	libzipfile \
87	libunz \
88
89common_TARGET:= libSR_Core
90
91
92# For the host
93# =====================================================
94
95include $(CLEAR_VARS)
96
97LOCAL_SRC_FILES := $(common_SRC_FILES)
98LOCAL_C_INCLUDES := $(common_C_INCLUDES)
99LOCAL_CFLAGS += $(common_CFLAGS)
100
101LOCAL_SHARED_LIBRARIES := $(common_SHARED_LIBRARIES)
102LOCAL_STATIC_LIBRARIES := $(common_STATIC_LIBRARIES)
103
104LOCAL_MODULE := $(common_TARGET)
105
106include $(BUILD_HOST_SHARED_LIBRARY)
107
108
109# For the device
110# =====================================================
111
112include $(CLEAR_VARS)
113
114LOCAL_SRC_FILES := $(common_SRC_FILES)
115LOCAL_C_INCLUDES := $(common_C_INCLUDES)
116LOCAL_CFLAGS += $(common_CFLAGS)
117
118LOCAL_SHARED_LIBRARIES := $(common_SHARED_LIBRARIES)
119LOCAL_STATIC_LIBRARIES := $(common_STATIC_LIBRARIES)
120
121LOCAL_MODULE := $(common_TARGET)
122
123include $(BUILD_STATIC_LIBRARY)
124