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