chiark / gitweb /
Remove some obsolete code
[disorder] / server / Makefile.am
CommitLineData
460b9539 1#
2# This file is part of DisOrder.
244348f8 3# Copyright (C) 2004-2008 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
21sbin_PROGRAMS=disorderd disorder-deadlock disorder-rescan disorder-dump \
d6dde5a3 22 disorder-speaker disorder-decode disorder-normalize \
bea6f6d5 23 disorder-stats disorder-dbupgrade disorder-choose
460b9539 24noinst_PROGRAMS=disorder.cgi trackname
25
26AM_CPPFLAGS=-I${top_srcdir}/lib -I../lib
27
28disorderd_SOURCES=disorderd.c \
29 api.c api-server.c \
30 daemonize.c daemonize.h \
31 play.c play.h \
32 server.c server.h \
f08c0859 33 server-queue.c server-queue.h \
460b9539 34 state.c state.h \
f0feb22e 35 exports.c \
320598d4 36 ../lib/memgc.c
0b861e97 37disorderd_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
b25aac59 38 $(LIBPCRE) $(LIBDB) $(LIBAO) $(LIBGC) $(LIBGCRYPT) $(LIBICONV) \
39 $(LIBASOUND) $(COREAUDIO)
460b9539 40disorderd_LDFLAGS=-export-dynamic
0b861e97 41disorderd_DEPENDENCIES=../lib/libdisorder.a
460b9539 42
f0feb22e 43disorder_deadlock_SOURCES=deadlock.c
0b861e97 44disorder_deadlock_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
637fdea3 45 $(LIBDB) $(LIBPCRE) $(LIBICONV) $(LIBGCRYPT)
0b861e97 46disorder_deadlock_DEPENDENCIES=../lib/libdisorder.a
460b9539 47
1c3f1e73 48disorder_speaker_SOURCES=speaker.c speaker.h \
49 speaker-command.c \
50 speaker-network.c \
937be4c0 51 speaker-coreaudio.c \
e99d42b1 52 speaker-oss.c \
1c3f1e73 53 speaker-alsa.c
0b861e97 54disorder_speaker_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
937be4c0 55 $(LIBASOUND) $(LIBPCRE) $(LIBICONV) $(LIBGCRYPT) $(COREAUDIO)
0b861e97 56disorder_speaker_DEPENDENCIES=../lib/libdisorder.a
460b9539 57
f8f8039f
RK
58disorder_decode_SOURCES=decode.c
59disorder_decode_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
75db8354 60 $(LIBMAD) $(LIBVORBISFILE) $(LIBFLAC)
f8f8039f
RK
61disorder_decode_DEPENDENCIES=../lib/libdisorder.a
62
6d2d327c 63disorder_normalize_SOURCES=normalize.c
637fdea3
RK
64disorder_normalize_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
65 $(LIBPCRE) $(LIBICONV) $(LIBGCRYPT)
6d2d327c
RK
66disorder_normalize_DEPENDENCIES=../lib/libdisorder.a
67
460b9539 68disorder_rescan_SOURCES=rescan.c \
69 api.c api-server.c \
f0feb22e 70 exports.c \
320598d4 71 ../lib/memgc.c
0b861e97 72disorder_rescan_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
637fdea3 73 $(LIBDB) $(LIBGC) $(LIBPCRE) $(LIBICONV) $(LIBGCRYPT)
460b9539 74disorder_rescan_LDFLAGS=-export-dynamic
0b861e97 75disorder_rescan_DEPENDENCIES=../lib/libdisorder.a
460b9539 76
bea6f6d5 77disorder_choose_SOURCES=choose.c \
28dc2d22 78 server-queue.c server-queue.h \
bea6f6d5
RK
79 api.c api-server.c \
80 exports.c \
81 ../lib/memgc.c
82disorder_choose_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
83 $(LIBDB) $(LIBGC) $(LIBPCRE) $(LIBGCRYPT)
84disorder_choose_LDFLAGS=-export-dynamic
85disorder_choose_DEPENDENCIES=../lib/libdisorder.a
86
f0feb22e 87disorder_stats_SOURCES=stats.c
d6dde5a3
RK
88disorder_stats_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
89 $(LIBDB) $(LIBPCRE) $(LIBICONV) $(LIBGCRYPT)
90disorder_stats_DEPENDENCIES=../lib/libdisorder.a
91
320598d4 92disorder_dump_SOURCES=dump.c \
320598d4 93 ../lib/memgc.c
0b861e97 94disorder_dump_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
637fdea3 95 $(LIBPCRE) $(LIBDB) $(LIBICONV) $(LIBGC) $(LIBGCRYPT)
0b861e97 96disorder_dump_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
460b9539 97
f0feb22e 98disorder_dbupgrade_SOURCES=dbupgrade.c ../lib/memgc.c
3dc3d7db
RK
99disorder_dbupgrade_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
100 $(LIBDB) $(LIBGC) $(LIBPCRE) $(LIBICONV) $(LIBGCRYPT)
101disorder_dbupgrade_DEPENDENCIES=../lib/libdisorder.a
102
460b9539 103disorder_cgi_SOURCES=dcgi.c dcgi.h \
104 api.c api-client.c api-client.h \
9faa7a88 105 cgi.c server-cgi.h cgimain.c exports.c
0b861e97 106disorder_cgi_LDADD=../lib/libdisorder.a \
f0feb22e 107 $(LIBPCRE) $(LIBGCRYPT) $(LIBDL) $(LIBDB)
460b9539 108disorder_cgi_LDFLAGS=-export-dynamic
0b861e97 109disorder_cgi_DEPENDENCIES=../lib/libdisorder.a
460b9539 110
111trackname_SOURCES=trackname.c
637fdea3 112trackname_LDADD=../lib/libdisorder.a $(LIBPCRE) $(LIBICONV) $(LIBGCRYPT)
0b861e97 113trackname_DEPENDENCIES=../lib/libdisorder.a
460b9539 114
115install-exec-hook:
116 $(LIBTOOL) --mode=finish $(DESTDIR)$(libdir)
117
5fa6c4f8 118check: check-help check-decode
460b9539 119
5fa6c4f8 120# check everything has working --help and --version
460b9539 121check-help: all
122 ./disorderd --help > /dev/null
5fa6c4f8 123 ./disorderd --version > /dev/null
460b9539 124 ./disorder-dump --help > /dev/null
5fa6c4f8 125 ./disorder-dump --version > /dev/null
460b9539 126 ./disorder-deadlock --help > /dev/null
5fa6c4f8 127 ./disorder-deadlock --version > /dev/null
460b9539 128 ./trackname --help > /dev/null
5fa6c4f8 129 ./trackname --version > /dev/null
460b9539 130 ./disorder-speaker --help > /dev/null
5fa6c4f8
RK
131 ./disorder-speaker --version > /dev/null
132 ./disorder-decode --help > /dev/null
133 ./disorder-decode --version > /dev/null
134 ./disorder-normalize --help > /dev/null
135 ./disorder-normalize --version > /dev/null
136 ./disorder-stats --help > /dev/null
137 ./disorder-stats --version > /dev/null
138 ./disorder-dbupgrade --help > /dev/null
139 ./disorder-dbupgrade --version > /dev/null
140 ./disorder-rescan --help > /dev/null
141 ./disorder-rescan --version > /dev/null
142
143# My sox doesn't know MP3 or FLAC unfortunately
144check-decode: disorder-decode disorder-normalize
145 echo "speaker_backend network" > config
146 echo "broadcast 127.255.255.255 discard" > config
147 ./disorder-decode ${top_srcdir}/sounds/scratch.ogg | \
148 ./disorder-normalize --config config > decoded.raw
149 oggdec -b 16 -e 1 -R -s 1 -o oggdec.raw ${top_srcdir}/sounds/scratch.ogg
150 cmp decoded.raw oggdec.raw
151 sox ${top_srcdir}/sounds/scratch.ogg scratch.wav
152 ./disorder-decode scratch.wav | \
153 ./disorder-normalize --config config > decoded.raw
b12be54a 154 ls -l *.raw
5fa6c4f8
RK
155 cmp decoded.raw oggdec.raw
156 rm -f scratch.wav config decoded.raw oggdec.raw
460b9539 157
158cgi.o: ../lib/definitions.h
e83d0967 159
244348f8 160EXTRA_DIST=README.dbversions