chiark / gitweb /
Async client bindings for playlist support. Untested.
[disorder] / lib / Makefile.am
1 #
2 # This file is part of DisOrder.
3 # Copyright (C) 2004-2008 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 noinst_LIBRARIES=libdisorder.a
22 include_HEADERS=disorder.h
23
24 if SERVER
25 TRACKDB=trackdb.c
26 else
27 TRACKDB=trackdb-stub.c
28 endif
29
30 libdisorder_a_SOURCES=charset.c charset.h               \
31         addr.c addr.h                                   \
32         alsabg.c alsabg.h                               \
33         arcfour.c arcfour.h                             \
34         authhash.c authhash.h                           \
35         basen.c basen.h                                 \
36         base64.c base64.h                               \
37         bits.c bits.h                                   \
38         cache.c cache.h                                 \
39         cgi.c cgi.h                                     \
40         client.c client.h                               \
41         client-common.c client-common.h                 \
42         configuration.c configuration.h                 \
43         cookies.c cookies.h                             \
44         dateparse.c dateparse.h xgetdate.c              \
45         defs.c defs.h                                   \
46         eclient.c eclient.h                             \
47         email.c                                         \
48         eventdist.c eventdist.h                         \
49         event.c event.h                                 \
50         eventlog.c eventlog.h                           \
51         filepart.c filepart.h                           \
52         hash.c hash.h                                   \
53         heap.h                                          \
54         hex.c hex.h                                     \
55         hostname.c hostname.h                           \
56         ifreq.c ifreq.h                                 \
57         inputline.c inputline.h                         \
58         kvp.c kvp.h                                     \
59         log.c log.h log-impl.h                          \
60         logfd.c logfd.h                                 \
61         macros.c macros-builtin.c macros.h              \
62         mem.c mem.h mem-impl.h                          \
63         mime.h mime.c                                   \
64         mixer.c mixer.h mixer-oss.c mixer-alsa.c        \
65         printf.c printf.h                               \
66         asprintf.c fprintf.c snprintf.c                 \
67         queue.c queue.h                                 \
68         random.c random.h                               \
69         regsub.c regsub.h                               \
70         rights.c queue-rights.c rights.h                \
71         rtp.h                                           \
72         selection.c selection.h                         \
73         sendmail.c sendmail.h                           \
74         signame.c signame.h                             \
75         sink.c sink.h                                   \
76         speaker-protocol.c speaker-protocol.h           \
77         split.c split.h                                 \
78         syscalls.c syscalls.h                           \
79         common.h                                        \
80         table.c table.h                                 \
81         timeval.h                                       \
82         $(TRACKDB) trackdb.h trackdb-int.h              \
83         trackdb-playlists.c                             \
84         trackname.c trackorder.c trackname.h            \
85         tracksort.c                                     \
86         url.h url.c                                     \
87         user.h user.c                                   \
88         unicode.h unicode.c                             \
89         unidata.h unidata.c                             \
90         vacopy.h                                        \
91         vector.c vector.h                               \
92         version.c version.h                             \
93         wav.h wav.c                                     \
94         wstat.c wstat.h                                 \
95         disorder.h
96
97 version-string: ../config.status ${top_srcdir}/scripts/make-version-string
98         CC="${CC}" ${top_srcdir}/scripts/make-version-string > $@.new
99         @if cmp $@.new $@; then \
100                 echo rm -f $@.new; rm -f $@.new; else \
101                 echo mv $@.new $@; mv $@.new $@; fi
102
103 versionstring.h: version-string ${top_srcdir}/scripts/text2c
104         ${top_srcdir}/scripts/text2c -extern disorder_version_string \
105                 version-string > $@.new
106         @if cmp $@.new $@; then \
107                 echo rm -f $@.new; rm -f $@.new; else \
108                 echo mv $@.new $@; mv $@.new $@; fi
109
110 definitions.h: Makefile
111         rm -f $@.new
112         echo "#define PKGLIBDIR \"${pkglibdir}\"" > $@.new
113         echo "#define PKGCONFDIR \"${sysconfdir}/\"PACKAGE" >> $@.new
114         echo "#define PKGSTATEDIR \"${localstatedir}/\"PACKAGE" >> $@.new
115         echo "#define PKGDATADIR \"${pkgdatadir}/\"" >> $@.new
116         echo "#define SBINDIR \"${sbindir}/\"" >> $@.new
117         echo "#define BINDIR \"${bindir}/\"" >> $@.new
118         echo "#define FINKBINDIR \"${finkbindir}/\"" >> $@.new
119         echo "#define SENDMAIL \"${SENDMAIL}\"" >> $@.new
120         @if cmp $@.new $@; then \
121                 echo rm -f $@.new; rm -f $@.new; else \
122                 echo mv $@.new $@; mv $@.new $@; fi
123 defs.o: definitions.h versionstring.h
124 defs.lo: definitions.h versionstring.h
125
126 rebuild-unicode:
127         cd ${srcdir} && ${top_srcdir}/scripts/make-unidata
128
129 %.i: %.c
130         $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) -c $< > $@.new
131         mv $@.new $@
132
133 CLEANFILES=definitions.h definitions.h.new version-string versionstring.h \
134            *.gcda *.gcov *.gcno
135
136 EXTRA_DIST=trackdb.c trackdb-stub.c