chiark / gitweb /
disobedience/disobedience.c: Show track title (or excuse) in title.
[disorder] / clients / Makefile.am
CommitLineData
460b9539 1#
2# This file is part of DisOrder.
9e42afcd 3# Copyright (C) 2006-2009, 2011-2013 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
929f577e 20noinst_PROGRAMS=filename-bytes rtpmon resample
e9b635a3 21noinst_SCRIPTS=dump2wav
460b9539 22
3f5b2351 23AUTOMAKE_OPTIONS=subdir-objects
460b9539 24AM_CPPFLAGS=-I${top_srcdir}/lib -I../lib
25
320598d4
RK
26disorder_SOURCES=disorder.c authorize.c authorize.h \
27 ../lib/memgc.c
0b861e97 28disorder_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
1be9101e 29 $(LIBGC) $(LIBGCRYPT) $(LIBPCRE) $(LIBICONV) $(LIBPTHREAD)
0b861e97 30disorder_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
460b9539 31
320598d4
RK
32disorderfm_SOURCES=disorderfm.c \
33 ../lib/memgc.c
3a8b42d3 34disorderfm_LDADD=$(LIBOBJS) ../lib/libdisorder.a $(LIBGC) $(LIBICONV)
0b861e97 35disorderfm_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
0b75463f 36
7a2c7068 37disorder_playrtp_SOURCES=playrtp.c playrtp.h playrtp-mem.c
de0ef46e 38disorder_playrtp_CFLAGS=$(PULSEAUDIO_CFLAGS) $(PULSEAUDIO_SIMPLE_CFLAGS)
9086a105 39disorder_playrtp_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
edbd470f 40 $(LIBASOUND) $(LIBPCRE) $(LIBICONV) $(LIBGCRYPT) $(COREAUDIO) \
de0ef46e 41 $(LIBPTHREAD) $(PULSEAUDIO_SIMPLE_LIBS) $(PULSEAUDIO_LIBS) -lm
0b75463f 42disorder_playrtp_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
460b9539 43
210d172f
RK
44rtpmon_SOURCES=rtpmon.c
45rtpmon_LDADD=$(LIBOBJS) ../lib/libdisorder.a
46
460b9539 47filename_bytes_SOURCES=filename-bytes.c
48
929f577e
RK
49resample_SOURCES=resample.c
50resample_LDADD=$(LIBOBJS) ../lib/libdisorder.a $(LIBSAMPLERATE)
51
460b9539 52check: check-help check-completions
53
5fa6c4f8 54# check everything has working --help and --version
460b9539 55check-help: all
56 ./disorder --version > /dev/null
57 ./disorder --help > /dev/null
58 ./disorder --help-commands > /dev/null
ba789897
RK
59 ./disorderfm --version > /dev/null
60 ./disorderfm --help > /dev/null
61 ./disorder-playrtp --version > /dev/null
62 ./disorder-playrtp --help > /dev/null
460b9539 63
64# check that the command completions are up to date
69669351 65check-completions: disorder
460b9539 66 ./disorder --help-commands \
67 | awk '/^ [a-z]/ { print $$1 }' \
68 | sort > ,commands
69 ( set -e;completions() { \
70 for x; do \
71 case $$x in\
72 quack ) ;;\
73 [a-z]* ) echo $$x; ;;\
74 esac;\
75 done;\
76 }; \
77 complete() { if [ "$$7" = disorder ]; then completions $$6; fi }; \
78 . ${top_srcdir}/scripts/completion.bash )\
79 | sort > ,completions
80 diff -u ,commands ,completions
81
67e8149c
RK
82CLEANFILES=,commands ,completions \
83 *.gcda *.gcov *.gcno *.c.html index.html
2734a0d5 84
9e42afcd 85EXTRA_DIST=dump2wav disorder.vcxproj disorder.vcxproj.filters