2 # This file is part of DisOrder.
3 # Copyright (C) 2006-2009 Richard Kettlewell
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.
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.
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/>.
19 bin_PROGRAMS=disorder disorderfm disorder-playrtp
20 noinst_PROGRAMS=filename-bytes rtpmon resample
21 noinst_SCRIPTS=dump2wav
23 AM_CPPFLAGS=-I${top_srcdir}/lib -I../lib
25 disorder_SOURCES=disorder.c authorize.c authorize.h \
27 disorder_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
28 $(LIBGC) $(LIBGCRYPT) $(LIBPCRE) $(LIBICONV) $(LIBDB) $(LIBPTHREAD)
29 disorder_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
31 disorderfm_SOURCES=disorderfm.c \
33 disorderfm_LDADD=$(LIBOBJS) ../lib/libdisorder.a $(LIBGC) $(LIBICONV)
34 disorderfm_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
36 disorder_playrtp_SOURCES=playrtp.c playrtp.h playrtp-mem.c
37 disorder_playrtp_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
38 $(LIBASOUND) $(LIBPCRE) $(LIBICONV) $(LIBGCRYPT) $(COREAUDIO) \
39 $(LIBDB) $(LIBPTHREAD) -lm
40 disorder_playrtp_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
42 rtpmon_SOURCES=rtpmon.c
43 rtpmon_LDADD=$(LIBOBJS) ../lib/libdisorder.a
45 filename_bytes_SOURCES=filename-bytes.c
47 resample_SOURCES=resample.c
48 resample_LDADD=$(LIBOBJS) ../lib/libdisorder.a $(LIBSAMPLERATE)
51 $(LIBTOOL) --mode=finish $(DESTDIR)$(libdir)
53 check: check-help check-completions
55 # check everything has working --help and --version
57 ./disorder --version > /dev/null
58 ./disorder --help > /dev/null
59 ./disorder --help-commands > /dev/null
60 ./disorderfm --version > /dev/null
61 ./disorderfm --help > /dev/null
62 ./disorder-playrtp --version > /dev/null
63 ./disorder-playrtp --help > /dev/null
65 # check that the command completions are up to date
66 check-completions: disorder
67 ./disorder --help-commands \
68 | awk '/^ [a-z]/ { print $$1 }' \
70 ( set -e;completions() { \
74 [a-z]* ) echo $$x; ;;\
78 complete() { if [ "$$7" = disorder ]; then completions $$6; fi }; \
79 . ${top_srcdir}/scripts/completion.bash )\
81 diff -u ,commands ,completions
83 CLEANFILES=,commands ,completions \
84 *.gcda *.gcov *.gcno *.c.html index.html