Commit | Line | Data |
---|---|---|
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 | 19 | bin_PROGRAMS=disorder disorderfm disorder-playrtp |
210d172f | 20 | noinst_PROGRAMS=filename-bytes rtpmon |
e9b635a3 | 21 | noinst_SCRIPTS=dump2wav |
460b9539 | 22 | |
23 | AM_CPPFLAGS=-I${top_srcdir}/lib -I../lib | |
24 | ||
320598d4 RK |
25 | disorder_SOURCES=disorder.c authorize.c authorize.h \ |
26 | ../lib/memgc.c | |
0b861e97 | 27 | disorder_LDADD=$(LIBOBJS) ../lib/libdisorder.a \ |
adeb58a0 | 28 | $(LIBGC) $(LIBGCRYPT) $(LIBPCRE) $(LIBDB) $(LIBPTHREAD) |
0b861e97 | 29 | disorder_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a |
460b9539 | 30 | |
320598d4 RK |
31 | disorderfm_SOURCES=disorderfm.c \ |
32 | ../lib/memgc.c | |
3a8b42d3 | 33 | disorderfm_LDADD=$(LIBOBJS) ../lib/libdisorder.a $(LIBGC) $(LIBICONV) |
0b861e97 | 34 | disorderfm_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a |
0b75463f | 35 | |
7a2c7068 | 36 | disorder_playrtp_SOURCES=playrtp.c playrtp.h playrtp-mem.c |
9086a105 | 37 | disorder_playrtp_LDADD=$(LIBOBJS) ../lib/libdisorder.a \ |
edbd470f | 38 | $(LIBASOUND) $(LIBPCRE) $(LIBICONV) $(LIBGCRYPT) $(COREAUDIO) \ |
39 | $(LIBDB) $(LIBPTHREAD) | |
0b75463f | 40 | disorder_playrtp_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a |
460b9539 | 41 | |
210d172f RK |
42 | rtpmon_SOURCES=rtpmon.c |
43 | rtpmon_LDADD=$(LIBOBJS) ../lib/libdisorder.a | |
44 | ||
460b9539 | 45 | filename_bytes_SOURCES=filename-bytes.c |
46 | ||
460b9539 | 47 | install-exec-hook: |
48 | $(LIBTOOL) --mode=finish $(DESTDIR)$(libdir) | |
49 | ||
50 | check: check-help check-completions | |
51 | ||
5fa6c4f8 | 52 | # check everything has working --help and --version |
460b9539 | 53 | check-help: all |
54 | ./disorder --version > /dev/null | |
55 | ./disorder --help > /dev/null | |
56 | ./disorder --help-commands > /dev/null | |
ba789897 RK |
57 | ./disorderfm --version > /dev/null |
58 | ./disorderfm --help > /dev/null | |
59 | ./disorder-playrtp --version > /dev/null | |
60 | ./disorder-playrtp --help > /dev/null | |
460b9539 | 61 | |
62 | # check that the command completions are up to date | |
69669351 | 63 | check-completions: disorder |
460b9539 | 64 | ./disorder --help-commands \ |
65 | | awk '/^ [a-z]/ { print $$1 }' \ | |
66 | | sort > ,commands | |
67 | ( set -e;completions() { \ | |
68 | for x; do \ | |
69 | case $$x in\ | |
70 | quack ) ;;\ | |
71 | [a-z]* ) echo $$x; ;;\ | |
72 | esac;\ | |
73 | done;\ | |
74 | }; \ | |
75 | complete() { if [ "$$7" = disorder ]; then completions $$6; fi }; \ | |
76 | . ${top_srcdir}/scripts/completion.bash )\ | |
77 | | sort > ,completions | |
78 | diff -u ,commands ,completions | |
79 | ||
67e8149c RK |
80 | CLEANFILES=,commands ,completions \ |
81 | *.gcda *.gcov *.gcno *.c.html index.html | |
2734a0d5 RK |
82 | |
83 | EXTRA_DIST=dump2wav |