chiark / gitweb /
--rcvbuf option; warn if -L is used
[disorder] / clients / Makefile.am
1 #
2 # This file is part of DisOrder.
3 # Copyright (C) 2006, 2007 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 2 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, 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.
14 #
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
18 # USA
19 #
20
21 bin_PROGRAMS=disorder disorderfm disorder-playrtp
22 noinst_PROGRAMS=test-eclient filename-bytes
23
24 AM_CPPFLAGS=-I${top_srcdir}/lib -I../lib
25
26 disorder_SOURCES=disorder.c authorize.c authorize.h \
27         ../lib/memgc.c
28 disorder_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
29         $(LIBDL) $(LIBGC) $(LIBGCRYPT) $(LIBPCRE)
30 disorder_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
31
32 disorderfm_SOURCES=disorderfm.c \
33         ../lib/memgc.c
34 disorderfm_LDADD=$(LIBOBJS) ../lib/libdisorder.a $(LIBGC) $(LIBICONV)
35 disorderfm_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
36
37 disorder_playrtp_SOURCES=playrtp.c
38 disorder_playrtp_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
39         $(LIBASOUND) $(COREAUDIO)
40 disorder_playrtp_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
41
42 filename_bytes_SOURCES=filename-bytes.c
43
44 test_eclient_SOURCES=test-eclient.c \
45         ../lib/memgc.c
46 test_eclient_LDADD=../lib/libdisorder.a \
47         $(LIBDL) $(LIBGC) $(LIBGCRYPT) $(LIBPCRE)
48 test_eclient_DEPENDENCIES=../lib/libdisorder.a
49
50 install-exec-hook:
51         $(LIBTOOL) --mode=finish $(DESTDIR)$(libdir)
52
53 check: check-help check-completions
54
55 # check everything has working --help
56 check-help: all
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
64
65 # check that the command completions are up to date
66 check-completions:
67         ./disorder --help-commands \
68                 | awk '/^  [a-z]/ { print $$1 }' \
69                 | sort > ,commands
70         ( set -e;completions() { \
71             for x; do \
72               case $$x in\
73                 quack ) ;;\
74                 [a-z]* ) echo $$x; ;;\
75               esac;\
76             done;\
77            }; \
78            complete() { if [ "$$7" = disorder ]; then completions $$6; fi }; \
79            . ${top_srcdir}/scripts/completion.bash )\
80                 | sort > ,completions
81         diff -u ,commands ,completions
82
83 CLEANFILES=,commands ,completions