3 # This file is part of polypaudio.
5 # polypaudio is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # polypaudio is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with polypaudio; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 AM_CFLAGS=-ansi -D_GNU_SOURCE -DDLSEARCHDIR=\"$(pkglibdir)\" -I$(srcdir)/..
24 EXTRA_DIST = polypaudio.pa depmod.py
25 bin_PROGRAMS = polypaudio pacat pactl
26 noinst_PROGRAMS = pacat-simple parec-simple
28 pkginclude_HEADERS=polyplib.h \
37 pkglib_LTLIBRARIES=libiochannel.la \
52 libprotocol-simple.la \
53 libprotocol-esound.la \
54 libprotocol-native.la \
56 module-cli-protocol-tcp.la \
57 module-cli-protocol-unix.la \
60 module-alsa-source.la \
63 module-simple-protocol-tcp.la \
64 module-simple-protocol-unix.la \
65 module-esound-protocol-tcp.la \
66 module-esound-protocol-unix.la \
67 module-native-protocol-tcp.la \
68 module-native-protocol-unix.la
70 lib_LTLIBRARIES=libpolyp.la \
75 polypaudio_SOURCES = idxset.c idxset.h \
79 mainloop.c mainloop.h \
80 memblock.c memblock.h \
82 sample-util.c sample-util.h \
83 memblockq.c memblockq.h \
86 source-output.c source-output.h \
87 sink-input.c sink-input.h \
91 mainloop-signal.c mainloop-signal.h \
92 mainloop-api.c mainloop-api.h \
97 resampler.c resampler.h \
99 memchunk.c memchunk.h \
100 sconv-s16le.c sconv-s16le.h \
101 sconv-s16be.c sconv-s16be.h \
103 modargs.c modargs.h \
104 cmdline.c cmdline.h \
105 cli-command.c cli-command.h \
106 clitext.c clitext.h \
107 tokenizer.c tokenizer.h \
108 dynarray.c dynarray.h \
111 polypaudio_CFLAGS = $(AM_CFLAGS) $(LIBSAMPLERATE_CFLAGS)
112 polypaudio_INCLUDES = $(INCLTDL)
113 polypaudio_LDADD = $(AM_LDADD) $(LIBLTDL) $(LIBSAMPLERATE_LIBS)
114 polypaudio_LDFLAGS=-export-dynamic
116 libprotocol_simple_la_SOURCES = protocol-simple.c protocol-simple.h
117 libprotocol_simple_la_LDFLAGS = -avoid-version
118 libprotocol_simple_la_LIBADD = $(AM_LIBADD) libsocket-server.la libiochannel.la
120 libsocket_server_la_SOURCES = socket-server.c socket-server.h
121 libsocket_server_la_LDFLAGS = -avoid-version
122 libsocket_server_la_LIBADD = $(AM_LIBADD) libiochannel.la libsocket-util.la
124 libsocket_client_la_SOURCES = socket-client.c socket-client.h
125 libsocket_client_la_LDFLAGS = -avoid-version
126 libsocket_client_la_LIBADD = $(AM_LIBADD) libiochannel.la libsocket-util.la
128 libpstream_la_SOURCES = pstream.c pstream.h
129 libpstream_la_LDFLAGS = -avoid-version
130 libpstream_la_LIBADD = $(AM_LIBADD) libpacket.la libiochannel.la
132 libpstream_util_la_SOURCES = pstream-util.c pstream-util.h
133 libpstream_util_la_LDFLAGS = -avoid-version
134 libpstream_util_la_LIBADD = $(AM_LIBADD) libpacket.la libpstream.la libtagstruct.la
136 libpdispatch_la_SOURCES = pdispatch.c pdispatch.h
137 libpdispatch_la_LDFLAGS = -avoid-version
138 libpdispatch_la_LIBADD = $(AM_LIBADD) libtagstruct.la
140 libiochannel_la_SOURCES = iochannel.c iochannel.h
141 libiochannel_la_LDFLAGS = -avoid-version
142 libiochannel_la_LIBADD = $(AM_LIBADD) libsocket-util.la
144 libpacket_la_SOURCES = packet.c packet.h
145 libpacket_la_LDFLAGS = -avoid-version
147 liboss_util_la_SOURCES = oss-util.c oss-util.h
148 liboss_util_la_LDFLAGS = -avoid-version
150 libalsa_util_la_SOURCES = alsa-util.c alsa-util.h
151 libalsa_util_la_LDFLAGS = -avoid-version
152 libalsa_util_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS)
153 libalsa_util_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
155 libioline_la_SOURCES = ioline.c ioline.h
156 libioline_la_LDFLAGS = -avoid-version
157 libioline_la_LIBADD = $(AM_LIBADD) libiochannel.la
159 libcli_la_SOURCES = cli.c cli.h
160 libcli_la_LDFLAGS = -avoid-version
161 libcli_la_LIBADD = $(AM_LIBADD) libiochannel.la libioline.la
163 libprotocol_cli_la_SOURCES = protocol-cli.c protocol-cli.h
164 libprotocol_cli_la_LDFLAGS = -avoid-version
165 libprotocol_cli_la_LIBADD = $(AM_LIBADD) libsocket-server.la libiochannel.la libcli.la
167 libprotocol_native_la_SOURCES = protocol-native.c protocol-native.h native-common.h
168 libprotocol_native_la_LDFLAGS = -avoid-version
169 libprotocol_native_la_LIBADD = $(AM_LIBADD) libsocket-server.la libpstream.la libpstream-util.la libpdispatch.la libtagstruct.la libauthkey.la
171 libtagstruct_la_SOURCES = tagstruct.c tagstruct.h
172 libtagstruct_la_LDFLAGS = -avoid-version
174 libprotocol_esound_la_SOURCES = protocol-esound.c protocol-esound.h esound.h
175 libprotocol_esound_la_LDFLAGS = -avoid-version
176 libprotocol_esound_la_LIBADD = $(AM_LIBADD) libsocket-server.la libiochannel.la libauthkey.la
178 libauthkey_la_SOURCES = authkey.c authkey.h
179 libauthkey_la_LDFLAGS = -avoid-version
181 libsocket_util_la_SOURCES = socket-util.c socket-util.h
182 libsocket_util_la_LDFLAGS = -avoid-version
184 module_simple_protocol_tcp_la_SOURCES = module-protocol-stub.c
185 module_simple_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
186 module_simple_protocol_tcp_la_LDFLAGS = -module -avoid-version
187 module_simple_protocol_tcp_la_LIBADD = $(AM_LIBADD) libprotocol-simple.la libsocket-server.la
189 module_simple_protocol_unix_la_SOURCES = module-protocol-stub.c
190 module_simple_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
191 module_simple_protocol_unix_la_LDFLAGS = -module -avoid-version
192 module_simple_protocol_unix_la_LIBADD = $(AM_LIBADD) libprotocol-simple.la libsocket-server.la libsocket-util.la
194 module_cli_protocol_tcp_la_SOURCES = module-protocol-stub.c
195 module_cli_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
196 module_cli_protocol_tcp_la_LDFLAGS = -module -avoid-version
197 module_cli_protocol_tcp_la_LIBADD = $(AM_LIBADD) libprotocol-cli.la libsocket-server.la
199 module_cli_protocol_unix_la_SOURCES = module-protocol-stub.c
200 module_cli_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
201 module_cli_protocol_unix_la_LDFLAGS = -module -avoid-version
202 module_cli_protocol_unix_la_LIBADD = $(AM_LIBADD) libprotocol-cli.la libsocket-server.la libsocket-util.la
204 module_native_protocol_tcp_la_SOURCES = module-protocol-stub.c
205 module_native_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
206 module_native_protocol_tcp_la_LDFLAGS = -module -avoid-version
207 module_native_protocol_tcp_la_LIBADD = $(AM_LIBADD) libprotocol-native.la libsocket-server.la
209 module_native_protocol_unix_la_SOURCES = module-protocol-stub.c
210 module_native_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
211 module_native_protocol_unix_la_LDFLAGS = -module -avoid-version
212 module_native_protocol_unix_la_LIBADD = $(AM_LIBADD) libprotocol-native.la libsocket-server.la libsocket-util.la
214 module_esound_protocol_tcp_la_SOURCES = module-protocol-stub.c
215 module_esound_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
216 module_esound_protocol_tcp_la_LDFLAGS = -module -avoid-version
217 module_esound_protocol_tcp_la_LIBADD = $(AM_LIBADD) libprotocol-esound.la libsocket-server.la
219 module_esound_protocol_unix_la_SOURCES = module-protocol-stub.c
220 module_esound_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
221 module_esound_protocol_unix_la_LDFLAGS = -module -avoid-version
222 module_esound_protocol_unix_la_LIBADD = $(AM_LIBADD) libprotocol-esound.la libsocket-server.la libsocket-util.la
224 module_pipe_sink_la_SOURCES = module-pipe-sink.c
225 module_pipe_sink_la_LDFLAGS = -module -avoid-version
226 module_pipe_sink_la_LIBADD = $(AM_LIBADD) libiochannel.la
228 module_alsa_sink_la_SOURCES = module-alsa-sink.c
229 module_alsa_sink_la_LDFLAGS = -module -avoid-version
230 module_alsa_sink_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la
231 module_alsa_sink_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
233 module_alsa_source_la_SOURCES = module-alsa-source.c
234 module_alsa_source_la_LDFLAGS = -module -avoid-version
235 module_alsa_source_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la
236 module_alsa_source_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
238 module_oss_la_SOURCES = module-oss.c
239 module_oss_la_LDFLAGS = -module -avoid-version
240 module_oss_la_LIBADD = $(AM_LIBADD) libiochannel.la liboss-util.la
242 module_oss_mmap_la_SOURCES = module-oss-mmap.c
243 module_oss_mmap_la_LDFLAGS = -module -avoid-version
244 module_oss_mmap_la_LIBADD = $(AM_LIBADD) liboss-util.la
246 module_cli_la_SOURCES = module-cli.c
247 module_cli_la_LDFLAGS = -module -avoid-version
248 module_cli_la_LIBADD = $(AM_LIBADD) libcli.la libiochannel.la
250 libpolyp_la_SOURCES = polyplib.c polyplib.h \
252 tagstruct.c tagstruct.h \
253 iochannel.c iochannel.h \
254 pstream.c pstream.h \
255 pstream-util.c pstream-util.h \
256 pdispatch.c pdispatch.h \
257 mainloop-api.c mainloop-api.h \
260 memblock.c memblock.h \
261 socket-client.c socket-client.h \
264 dynarray.c dynarray.h \
265 memchunk.c memchunk.h \
266 authkey.c authkey.h \
267 socket-util.c socket-util.h \
269 libpolyp_la_CFLAGS = $(AM_CFLAGS)
271 libpolyp_mainloop_la_SOURCES = mainloop-api.h mainloop-api.c \
272 mainloop.c mainloop.h \
273 mainloop-signal.c mainloop-signal.h
274 libpolyp_mainloop_la_CFLAGS = $(AM_CFLAGS)
276 libpolyp_error_la_SOURCES = polyplib-error.c polyplib-error.h
277 libpolyp_error_la_CFLAGS = $(AM_CFLAGS)
279 libpolyp_simple_la_SOURCES = polyplib-simple.c polyplib-simple.h
280 libpolyp_simple_la_CFLAGS = $(AM_CFLAGS)
281 libpolyp_simple_la_LIBADD = $(AM_LIBADD) libpolyp.la libpolyp-mainloop.la
283 pacat_SOURCES = pacat.c
284 pacat_LDADD = $(AM_LDADD) libpolyp.la libpolyp-error.la libpolyp-mainloop.la
285 pacat_CFLAGS = $(AM_CFLAGS)
287 pactl_SOURCES = pactl.c
288 pactl_LDADD = $(AM_LDADD) libpolyp.la libpolyp-error.la libpolyp-mainloop.la
289 pactl_CFLAGS = $(AM_CFLAGS)
291 pacat_simple_SOURCES = pacat-simple.c
292 pacat_simple_LDADD = $(AM_LDADD) libpolyp-simple.la libpolyp-error.la
293 pacat_simple_CFLAGS = $(AM_CFLAGS)
295 parec_simple_SOURCES = parec-simple.c
296 parec_simple_LDADD = $(AM_LDADD) libpolyp-simple.la libpolyp-error.la
297 parec_simple_CFLAGS = $(AM_CFLAGS)
299 if BUILD_LIBPOLYPCORE
301 pkginclude_HEADERS+=cli-command.h\
331 lib_LTLIBRARIES+= libpolypcore.la
333 libpolypcore_la_SOURCES = idxset.c idxset.h \
336 mainloop.c mainloop.h \
337 memblock.c memblock.h \
339 sample-util.c sample-util.h \
340 memblockq.c memblockq.h \
343 source-output.c source-output.h \
344 sink-input.c sink-input.h \
348 mainloop-signal.c mainloop-signal.h \
349 mainloop-api.c mainloop-api.h \
351 hashmap.c hashmap.h \
352 namereg.c namereg.h \
354 resampler.c resampler.h \
356 memchunk.c memchunk.h \
357 sconv-s16le.c sconv-s16le.h \
358 sconv-s16be.c sconv-s16be.h \
360 modargs.c modargs.h \
361 cli-command.c cli-command.h \
362 clitext.c clitext.h \
363 tokenizer.c tokenizer.h \
364 dynarray.c dynarray.h