chiark / gitweb /
plugins/tracklength-gstreamer.c: Rewrite to use `GstDiscoverer'.
[disorder] / clients / Makefile.am
... / ...
CommitLineData
1#
2# This file is part of DisOrder.
3# Copyright (C) 2006-2009, 2011-2013 Richard Kettlewell
4#
5# This program 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 3 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program. If not, see <http://www.gnu.org/licenses/>.
17#
18
19VPATH+=${top_srcdir}/common
20
21bin_PROGRAMS=disorder disorderfm disorder-playrtp
22noinst_PROGRAMS=filename-bytes rtpmon resample
23noinst_SCRIPTS=dump2wav
24
25AUTOMAKE_OPTIONS=subdir-objects
26AM_CPPFLAGS=-I${top_srcdir}/lib -I../lib
27
28disorder_SOURCES=disorder.c authorize.c authorize.h
29nodist_disorder_SOURCES=memgc.c
30disorder_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
31 $(LIBGC) $(LIBGCRYPT) $(LIBPCRE) $(LIBICONV) $(LIBPTHREAD)
32disorder_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
33
34disorderfm_SOURCES=disorderfm.c
35nodist_disorderfm_SOURCES=memgc.c
36disorderfm_LDADD=$(LIBOBJS) ../lib/libdisorder.a $(LIBGC) $(LIBICONV)
37disorderfm_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
38
39disorder_playrtp_SOURCES=playrtp.c playrtp.h playrtp-mem.c
40disorder_playrtp_CFLAGS=$(PULSEAUDIO_CFLAGS) $(PULSEAUDIO_SIMPLE_CFLAGS)
41disorder_playrtp_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
42 $(LIBASOUND) $(LIBPCRE) $(LIBICONV) $(LIBGCRYPT) $(COREAUDIO) \
43 $(LIBPTHREAD) $(PULSEAUDIO_SIMPLE_LIBS) $(PULSEAUDIO_LIBS) -lm
44disorder_playrtp_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
45
46rtpmon_SOURCES=rtpmon.c
47rtpmon_LDADD=$(LIBOBJS) ../lib/libdisorder.a
48
49filename_bytes_SOURCES=filename-bytes.c
50
51resample_SOURCES=resample.c
52resample_LDADD=$(LIBOBJS) ../lib/libdisorder.a $(LIBSAMPLERATE)
53
54check: check-help check-completions
55
56# check everything has working --help and --version
57check-help: all
58 ./disorder --version > /dev/null
59 ./disorder --help > /dev/null
60 ./disorder --help-commands > /dev/null
61 ./disorderfm --version > /dev/null
62 ./disorderfm --help > /dev/null
63 ./disorder-playrtp --version > /dev/null
64 ./disorder-playrtp --help > /dev/null
65
66# check that the command completions are up to date
67check-completions: disorder
68 ./disorder --help-commands \
69 | awk '/^ [a-z]/ { print $$1 }' \
70 | sort > ,commands
71 ( set -e;completions() { \
72 for x; do \
73 case $$x in\
74 quack ) ;;\
75 [a-z]* ) echo $$x; ;;\
76 esac;\
77 done;\
78 }; \
79 complete() { if [ "$$7" = disorder ]; then completions $$6; fi }; \
80 . ${top_srcdir}/scripts/completion.bash )\
81 | sort > ,completions
82 diff -u ,commands ,completions
83
84CLEANFILES=,commands ,completions \
85 *.gcda *.gcov *.gcno *.c.html index.html
86
87EXTRA_DIST=dump2wav disorder.vcxproj disorder.vcxproj.filters