chiark / gitweb /
make client.c return status code on error
[disorder] / clients / Makefile.am
CommitLineData
460b9539 1#
2# This file is part of DisOrder.
622cdeda 3# Copyright (C) 2006, 2007 Richard Kettlewell
460b9539 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
0b75463f 21bin_PROGRAMS=disorder disorderfm disorder-playrtp
460b9539 22noinst_PROGRAMS=test-eclient filename-bytes
e9b635a3 23noinst_SCRIPTS=dump2wav
460b9539 24
25AM_CPPFLAGS=-I${top_srcdir}/lib -I../lib
26
320598d4
RK
27disorder_SOURCES=disorder.c authorize.c authorize.h \
28 ../lib/memgc.c
0b861e97 29disorder_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
f0feb22e 30 $(LIBGC) $(LIBGCRYPT) $(LIBPCRE) $(LIBDB)
0b861e97 31disorder_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
460b9539 32
320598d4
RK
33disorderfm_SOURCES=disorderfm.c \
34 ../lib/memgc.c
3a8b42d3 35disorderfm_LDADD=$(LIBOBJS) ../lib/libdisorder.a $(LIBGC) $(LIBICONV)
0b861e97 36disorderfm_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
0b75463f 37
c593cf7c 38disorder_playrtp_SOURCES=playrtp.c playrtp.h playrtp-mem.c \
cfa7dda1 39 playrtp-alsa.c playrtp-coreaudio.c playrtp-oss.c
9086a105 40disorder_playrtp_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
f0feb22e 41 $(LIBASOUND) $(LIBPCRE) $(LIBICONV) $(LIBGCRYPT) $(COREAUDIO) $(LIBDB)
0b75463f 42disorder_playrtp_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
460b9539 43
44filename_bytes_SOURCES=filename-bytes.c
45
320598d4
RK
46test_eclient_SOURCES=test-eclient.c \
47 ../lib/memgc.c
0b861e97 48test_eclient_LDADD=../lib/libdisorder.a \
f08c0859 49 $(LIBGC) $(LIBGCRYPT) $(LIBPCRE)
0b861e97 50test_eclient_DEPENDENCIES=../lib/libdisorder.a
460b9539 51
52install-exec-hook:
53 $(LIBTOOL) --mode=finish $(DESTDIR)$(libdir)
54
55check: check-help check-completions
56
5fa6c4f8 57# check everything has working --help and --version
460b9539 58check-help: all
59 ./disorder --version > /dev/null
60 ./disorder --help > /dev/null
61 ./disorder --help-commands > /dev/null
ba789897
RK
62 ./disorderfm --version > /dev/null
63 ./disorderfm --help > /dev/null
64 ./disorder-playrtp --version > /dev/null
65 ./disorder-playrtp --help > /dev/null
460b9539 66
67# check that the command completions are up to date
69669351 68check-completions: disorder
460b9539 69 ./disorder --help-commands \
70 | awk '/^ [a-z]/ { print $$1 }' \
71 | sort > ,commands
72 ( set -e;completions() { \
73 for x; do \
74 case $$x in\
75 quack ) ;;\
76 [a-z]* ) echo $$x; ;;\
77 esac;\
78 done;\
79 }; \
80 complete() { if [ "$$7" = disorder ]; then completions $$6; fi }; \
81 . ${top_srcdir}/scripts/completion.bash )\
82 | sort > ,completions
83 diff -u ,commands ,completions
84
85CLEANFILES=,commands ,completions
2734a0d5
RK
86
87EXTRA_DIST=dump2wav