sphinx-speech-engine: get back utterance id what we lost on the way
[profile/ivi/speech-recognition.git] / src / Makefile.am
1 sbin_PROGRAMS      = srs-daemon
2 bin_PROGRAMS       = srs-client
3
4 plugindir          = $(libdir)/src/plugins
5 plugin_LTLIBRARIES =
6
7 INCLUDES           = -I$(top_builddir)
8 AM_CFLAGS          = $(INCLUDES) $(DBUS_CFLAGS)
9
10 QUIET_GEN          = $(Q:@=@echo '  GEN   '$@;)
11
12 # SRS daemon
13 srs_daemon_PUBLIC_SYMBOLS =                     \
14                 daemon/context.h                \
15                 daemon/audiobuf.h               \
16                 daemon/recognizer.h             \
17                 daemon/plugin.h
18
19 srs_daemon_SOURCES =                            \
20                 daemon/daemon.c                 \
21                 daemon/config.c                 \
22                 daemon/dbusif.c                 \
23                 daemon/resourceif.c             \
24                 daemon/client.c                 \
25                 daemon/plugin.c                 \
26                 daemon/audiobuf.c               \
27                 daemon/recognizer.c
28
29 srs_daemon_CFLAGS =                             \
30                 $(AM_CFLAGS)                    \
31                 $(PULSE_CFLAGS)                 \
32                 $(DBUS_CFLAGS)
33
34 srs_daemon_LDADD =                              \
35                 ../src/libmurphy-pulse.la       \
36                 ../src/libmurphy-dbus.la        \
37                 ../src/libmurphy-common.la      \
38                 ../src/libmurphy-resource.la    \
39                 $(PULSE_LIBS)                   \
40                 $(DBUS_LIBS)                    \
41                 -ldl
42
43 srs_daemon_LDFLAGS =                            \
44                 -rdynamic
45
46 # SRS command line test clinet
47 srs_client_SOURCES =                            \
48                 client/client.c
49
50 srs_client_CFLAGS =                             \
51                 $(AM_CFLAGS)                    \
52                 $(DBUS_CFLAGS)
53
54 srs_client_LDADD =                              \
55                 ../src/libmurphy-pulse.la       \
56                 ../src/libmurphy-dbus.la        \
57                 ../src/libbreedline-murphy.la   \
58                 ../src/libmurphy-common.la      \
59                 ../src/libbreedline.la          \
60                 $(PULSE_LIBS)                   \
61                 $(DBUS_LIBS)
62
63 # SRS fake speech engine plugin
64 plugin_LTLIBRARIES += plugin-fake-speech.la
65
66 plugin_fake_speech_la_SOURCES =                 \
67                 plugins/fake-speech-engine/fake.c
68
69 plugin_fake_speech_la_CFLAGS  =                 \
70                 $(AM_CFLAGS)
71
72 plugin_fake_speech_la_LDFLAGS =                 \
73                 -module -avoid-version
74
75 plugin_fake_speech_la_LIBADD  =
76
77 # SRS CMU Sphinx speech engine plugin
78 if SPHINX_ENABLED
79 plugin_LTLIBRARIES += plugin-sphinx-speech.la
80
81 plugin_sphinx_speech_la_SOURCES =                               \
82                 plugins/sphinx-speech-engine/sphinx-plugin.c    \
83                 plugins/sphinx-speech-engine/pulse-interface.c  \
84                 plugins/sphinx-speech-engine/input-buffer.c     \
85                 plugins/sphinx-speech-engine/filter-buffer.c    \
86                 plugins/sphinx-speech-engine/utterance.c        \
87                 plugins/sphinx-speech-engine/decoder-set.c      \
88                 plugins/sphinx-speech-engine/options.c
89
90 plugin_sphinx_speech_la_CFLAGS  =                       \
91                 $(AM_CFLAGS)                            \
92                 $(PULSE_CFLAGS)                         \
93                 $(SPHINX_CFLAGS)
94
95 plugin_sphinx_speech_la_LDFLAGS =                       \
96                 -module -avoid-version
97
98 plugin_sphinx_speech_la_LIBADD  =                       \
99                 $(PULSE_LIBS)                           \
100                 $(SPHINX_LIBS)
101 endif
102
103
104 # SRS Nuance speech engine plugin
105 plugin_LTLIBRARIES += plugin-nuance-speech.la
106
107 plugin_nuance_speech_la_SOURCES =                       \
108                 plugins/nuance-speech-engine/nuance.c
109
110 plugin_nuance_speech_la_CFLAGS  =                       \
111                 $(AM_CFLAGS)
112
113 plugin_nuance_speech_la_LDFLAGS =                       \
114                 -module -avoid-version
115
116 plugin_nuance_speech_la_LIBADD  =
117
118 # SRS fake speech engine plugin
119 plugin_LTLIBRARIES += plugin-simple-disambiguator.la
120
121 plugin_simple_disambiguator_la_SOURCES =                        \
122                 plugins/simple-disambiguator/disambiguator.c
123
124 plugin_simple_disambiguator_la_CFLAGS  =                        \
125                 $(AM_CFLAGS)
126
127 plugin_simple_disambiguator_la_LDFLAGS =                        \
128                 -module -avoid-version
129
130 plugin_simple_disambiguator_la_LIBADD  =
131
132 # Mpris2 client plugin
133 plugin_LTLIBRARIES += plugin-mpris2-client.la
134
135 plugin_mpris2_client_la_SOURCES =                               \
136                 plugins/mpris2-client/mpris2-plugin.c           \
137                 plugins/mpris2-client/dbusif.c                  \
138                 plugins/mpris2-client/clients.c
139
140 plugin_mpris2_client_la_CFLAGS  =                               \
141                 $(AM_CFLAGS)
142
143 plugin_mpris2_client_la_LDFLAGS =                               \
144                 -module -avoid-version
145
146 plugin_mpris2_client_la_LIBADD  =
147
148
149 # Bluetooth client plugin
150 plugin_LTLIBRARIES += plugin-bluetooth-client.la
151
152 plugin_bluetooth_client_la_SOURCES =                            \
153                 plugins/bluetooth-client/bluetooth-plugin.c     \
154                 plugins/bluetooth-client/dbusif.c               \
155                 plugins/bluetooth-client/pulseif.c              \
156                 plugins/bluetooth-client/clients.c
157
158 plugin_bluetooth_client_la_CFLAGS  =                            \
159                 $(AM_CFLAGS)
160
161 plugin_bluetooth_client_la_LDFLAGS =                            \
162                 -module -avoid-version
163
164 plugin_bluetooth_client_la_LIBADD  =
165
166
167 # cleanup
168 clean-local::
169         -rm -f *~