chiark / gitweb /
Switch to GPL v3
[disorder] / clients / Makefile.am
CommitLineData
460b9539 1#
2# This file is part of DisOrder.
5aff007d 3# Copyright (C) 2006-2008 Richard Kettlewell
460b9539 4#
e7eb3a27 5# This program is free software: you can redistribute it and/or modify
460b9539 6# it under the terms of the GNU General Public License as published by
e7eb3a27 7# the Free Software Foundation, either version 3 of the License, or
460b9539 8# (at your option) any later version.
9#
e7eb3a27
RK
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#
460b9539 15# You should have received a copy of the GNU General Public License
e7eb3a27 16# along with this program. If not, see <http://www.gnu.org/licenses/>.
460b9539 17#
18
0b75463f 19bin_PROGRAMS=disorder disorderfm disorder-playrtp
06bfbba4 20noinst_PROGRAMS=filename-bytes
e9b635a3 21noinst_SCRIPTS=dump2wav
460b9539 22
23AM_CPPFLAGS=-I${top_srcdir}/lib -I../lib
24
320598d4
RK
25disorder_SOURCES=disorder.c authorize.c authorize.h \
26 ../lib/memgc.c
0b861e97 27disorder_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
f0feb22e 28 $(LIBGC) $(LIBGCRYPT) $(LIBPCRE) $(LIBDB)
0b861e97 29disorder_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
460b9539 30
320598d4
RK
31disorderfm_SOURCES=disorderfm.c \
32 ../lib/memgc.c
3a8b42d3 33disorderfm_LDADD=$(LIBOBJS) ../lib/libdisorder.a $(LIBGC) $(LIBICONV)
0b861e97 34disorderfm_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
0b75463f 35
c593cf7c 36disorder_playrtp_SOURCES=playrtp.c playrtp.h playrtp-mem.c \
cfa7dda1 37 playrtp-alsa.c playrtp-coreaudio.c playrtp-oss.c
9086a105 38disorder_playrtp_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
edbd470f 39 $(LIBASOUND) $(LIBPCRE) $(LIBICONV) $(LIBGCRYPT) $(COREAUDIO) \
40 $(LIBDB) $(LIBPTHREAD)
0b75463f 41disorder_playrtp_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
460b9539 42
43filename_bytes_SOURCES=filename-bytes.c
44
460b9539 45install-exec-hook:
46 $(LIBTOOL) --mode=finish $(DESTDIR)$(libdir)
47
48check: check-help check-completions
49
5fa6c4f8 50# check everything has working --help and --version
460b9539 51check-help: all
52 ./disorder --version > /dev/null
53 ./disorder --help > /dev/null
54 ./disorder --help-commands > /dev/null
ba789897
RK
55 ./disorderfm --version > /dev/null
56 ./disorderfm --help > /dev/null
57 ./disorder-playrtp --version > /dev/null
58 ./disorder-playrtp --help > /dev/null
460b9539 59
60# check that the command completions are up to date
69669351 61check-completions: disorder
460b9539 62 ./disorder --help-commands \
63 | awk '/^ [a-z]/ { print $$1 }' \
64 | sort > ,commands
65 ( set -e;completions() { \
66 for x; do \
67 case $$x in\
68 quack ) ;;\
69 [a-z]* ) echo $$x; ;;\
70 esac;\
71 done;\
72 }; \
73 complete() { if [ "$$7" = disorder ]; then completions $$6; fi }; \
74 . ${top_srcdir}/scripts/completion.bash )\
75 | sort > ,completions
76 diff -u ,commands ,completions
77
78CLEANFILES=,commands ,completions
2734a0d5
RK
79
80EXTRA_DIST=dump2wav