chiark / gitweb /
94415030063d3e62db498a3ebdaaac31ccd96955
[disorder] / server / Makefile.am
1 #
2 # This file is part of DisOrder.
3 # Copyright (C) 2004, 2005, 2006 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 sbin_PROGRAMS=disorderd disorder-deadlock disorder-rescan disorder-dump \
22               disorder-speaker
23 noinst_PROGRAMS=disorder.cgi trackname
24
25 AM_CPPFLAGS=-I${top_srcdir}/lib -I../lib
26
27 disorderd_SOURCES=disorderd.c                           \
28         api.c api-server.c                              \
29         daemonize.c daemonize.h                         \
30         play.c play.h                                   \
31         server.c server.h                               \
32         state.c state.h                                 \
33         trackdb.c trackdb.h trackdb-int.h exports.c
34 disorderd_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
35         $(LIBPCRE) $(LIBDB) $(LIBAO) $(LIBGC) $(LIBGCRYPT)
36 disorderd_LDFLAGS=-export-dynamic
37 disorderd_DEPENDENCIES=../lib/libdisorder.a
38
39 disorder_deadlock_SOURCES=deadlock.c                    \
40         trackdb.c trackdb.h
41 disorder_deadlock_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
42         $(LIBDB) $(LIBPCRE) $(LIBGC)
43 disorder_deadlock_DEPENDENCIES=../lib/libdisorder.a
44
45 disorder_speaker_SOURCES=speaker.c
46 disorder_speaker_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
47         $(LIBASOUND) $(LIBGC) $(LIBPCRE)
48 disorder_speaker_DEPENDENCIES=../lib/libdisorder.a
49
50 disorder_rescan_SOURCES=rescan.c                        \
51         api.c api-server.c                              \
52         trackdb.c trackdb.h exports.c
53 disorder_rescan_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
54         $(LIBDB) $(LIBGC) $(LIBPCRE)
55 disorder_rescan_LDFLAGS=-export-dynamic
56 disorder_rescan_DEPENDENCIES=../lib/libdisorder.a
57
58 disorder_dump_SOURCES=dump.c                           \
59         trackdb.c trackdb.h
60 disorder_dump_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
61         $(LIBPCRE) $(LIBDB) $(LIBGC)
62 disorder_dump_DEPENDENCIES=$(LIBOBJS) ../lib/libdisorder.a
63
64 disorder_cgi_SOURCES=dcgi.c dcgi.h                      \
65         api.c api-client.c api-client.h                 \
66         cgi.c cgi.h cgimain.c exports.c
67 disorder_cgi_LDADD=../lib/libdisorder.a \
68         $(LIBPCRE) $(LIBGC) $(LIBGCRYPT) $(LIBDL)
69 disorder_cgi_LDFLAGS=-export-dynamic
70 disorder_cgi_DEPENDENCIES=../lib/libdisorder.a
71
72 trackname_SOURCES=trackname.c
73 trackname_LDADD=../lib/libdisorder.a $(LIBGC) $(LIBPCRE)
74 trackname_DEPENDENCIES=../lib/libdisorder.a
75
76 install-exec-hook:
77         $(LIBTOOL) --mode=finish $(DESTDIR)$(libdir)
78
79 check: check-help
80
81 # check everything has working --help
82 check-help: all
83         ./disorderd --help > /dev/null
84         ./disorder-dump --help > /dev/null
85         ./disorder-deadlock --help > /dev/null
86         ./trackname --help > /dev/null
87         ./disorder-speaker --help > /dev/null
88
89 cgi.o: ../lib/definitions.h