2 # This file is part of DisOrder.
3 # Copyright (C) 2006, 2007 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 2 of the License, or
8 # (at your option) any later version.
10 # This program 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 this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21 bin_PROGRAMS=disorder disorderfm disorder-playrtp
22 noinst_PROGRAMS=test-eclient filename-bytes
24 AM_CPPFLAGS=-I${top_srcdir}/lib -I../lib
26 disorder_SOURCES=disorder.c authorize.c authorize.h \
28 disorder_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
29 $(LIBGC) $(LIBGCRYPT) $(LIBPCRE)
30 disorder_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
32 disorderfm_SOURCES=disorderfm.c \
34 disorderfm_LDADD=$(LIBOBJS) ../lib/libdisorder.a $(LIBGC) $(LIBICONV)
35 disorderfm_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
37 disorder_playrtp_SOURCES=playrtp.c playrtp.h playrtp-mem.c \
38 playrtp-alsa.c playrtp-coreaudio.c playrtp-oss.c
39 disorder_playrtp_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
40 $(LIBASOUND) $(LIBPCRE) $(LIBICONV) $(LIBGCRYPT) $(COREAUDIO)
41 disorder_playrtp_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
43 filename_bytes_SOURCES=filename-bytes.c
45 test_eclient_SOURCES=test-eclient.c \
47 test_eclient_LDADD=../lib/libdisorder.a \
48 $(LIBGC) $(LIBGCRYPT) $(LIBPCRE)
49 test_eclient_DEPENDENCIES=../lib/libdisorder.a
52 $(LIBTOOL) --mode=finish $(DESTDIR)$(libdir)
54 check: check-help check-completions
56 # check everything has working --help
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
66 # check that the command completions are up to date
67 check-completions: disorder
68 ./disorder --help-commands \
69 | awk '/^ [a-z]/ { print $$1 }' \
71 ( set -e;completions() { \
75 [a-z]* ) echo $$x; ;;\
79 complete() { if [ "$$7" = disorder ]; then completions $$6; fi }; \
80 . ${top_srcdir}/scripts/completion.bash )\
82 diff -u ,commands ,completions
84 CLEANFILES=,commands ,completions