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