chiark / gitweb /
disorder-playrtp now includes timestamps in its log output (which
[disorder] / clients / Makefile.am
... / ...
CommitLineData
1#
2# This file is part of DisOrder.
3# Copyright (C) 2006-2008 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
19bin_PROGRAMS=disorder disorderfm disorder-playrtp
20noinst_PROGRAMS=filename-bytes
21noinst_SCRIPTS=dump2wav
22
23AM_CPPFLAGS=-I${top_srcdir}/lib -I../lib
24
25disorder_SOURCES=disorder.c authorize.c authorize.h \
26 ../lib/memgc.c
27disorder_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
28 $(LIBGC) $(LIBGCRYPT) $(LIBPCRE) $(LIBDB) $(LIBPTHREAD)
29disorder_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
30
31disorderfm_SOURCES=disorderfm.c \
32 ../lib/memgc.c
33disorderfm_LDADD=$(LIBOBJS) ../lib/libdisorder.a $(LIBGC) $(LIBICONV)
34disorderfm_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
35
36disorder_playrtp_SOURCES=playrtp.c playrtp.h playrtp-mem.c
37disorder_playrtp_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
38 $(LIBASOUND) $(LIBPCRE) $(LIBICONV) $(LIBGCRYPT) $(COREAUDIO) \
39 $(LIBDB) $(LIBPTHREAD)
40disorder_playrtp_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
41
42filename_bytes_SOURCES=filename-bytes.c
43
44install-exec-hook:
45 $(LIBTOOL) --mode=finish $(DESTDIR)$(libdir)
46
47check: check-help check-completions
48
49# check everything has working --help and --version
50check-help: all
51 ./disorder --version > /dev/null
52 ./disorder --help > /dev/null
53 ./disorder --help-commands > /dev/null
54 ./disorderfm --version > /dev/null
55 ./disorderfm --help > /dev/null
56 ./disorder-playrtp --version > /dev/null
57 ./disorder-playrtp --help > /dev/null
58
59# check that the command completions are up to date
60check-completions: disorder
61 ./disorder --help-commands \
62 | awk '/^ [a-z]/ { print $$1 }' \
63 | sort > ,commands
64 ( set -e;completions() { \
65 for x; do \
66 case $$x in\
67 quack ) ;;\
68 [a-z]* ) echo $$x; ;;\
69 esac;\
70 done;\
71 }; \
72 complete() { if [ "$$7" = disorder ]; then completions $$6; fi }; \
73 . ${top_srcdir}/scripts/completion.bash )\
74 | sort > ,completions
75 diff -u ,commands ,completions
76
77CLEANFILES=,commands ,completions \
78 *.gcda *.gcov *.gcno *.c.html index.html
79
80EXTRA_DIST=dump2wav