lib/configuration.c: Remove `type_stringlist', which nothing was using.
[disorder] / lib / Makefile.am
1 #
2 # This file is part of DisOrder.
3 # Copyright (C) 2004-2010, 2012, 2013 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
19 VPATH+=${top_srcdir}/common
20
21 noinst_LIBRARIES=libdisorder.a
22 include_HEADERS=disorder.h
23
24 if SERVER
25 TRACKDB=trackdb.c trackdb-playlists.c
26 else
27 TRACKDB=trackdb-stub.c
28 endif
29
30 libdisorder_a_SOURCES=charset.c charsetf.c charset.h \
31 addr.c addr.h \
32 arcfour.c arcfour.h \
33 authhash.c authhash.h \
34 basen.c basen.h \
35 base64.c base64.h \
36 bits.c bits.h \
37 byte-order.h \
38 cache.c cache.h \
39 cgi.c cgi.h \
40 client.c client.h client-stubs.h \
41 client-common.c client-common.h \
42 configuration.c configuration.h \
43 cookies.c cookies.h \
44 coreaudio.c coreaudio.h \
45 dateparse.c dateparse.h xgetdate.c \
46 defs.c defs.h \
47 eclient.c eclient.h eclient-stubs.h \
48 email.c \
49 eventdist.c eventdist.h \
50 event.c event.h \
51 eventlog.c eventlog.h \
52 filepart.c filepart.h \
53 hash.c hash.h \
54 heap.h \
55 hex.c hex.h \
56 hostname.c hostname.h \
57 hreader.h \
58 ifreq.c ifreq.h \
59 inputline.c inputline.h \
60 kvp.c kvp.h \
61 log.c log.h \
62 logfd.c logfd.h \
63 macros.c macros-builtin.c macros.h \
64 mem.c mem.h \
65 mime.h mime.c \
66 printf.c printf.h \
67 asprintf.c fprintf.c snprintf.c \
68 queue.c queue.h \
69 random.c random.h \
70 regsub.c regsub.h \
71 resample.c resample.h \
72 rights.c queue-rights.c rights.h \
73 rtp.h \
74 selection.c selection.h \
75 sendmail.c sendmail.h \
76 signame.c signame.h \
77 sink.c sink.h \
78 socketio.c socketio.h \
79 speaker-protocol.c speaker-protocol.h \
80 split.c split.h \
81 strptime.c strptime.h \
82 syscalls.c syscallsrt.c syscalls.h \
83 common.h \
84 table.c table.h \
85 timeval.h \
86 $(TRACKDB) trackdb.h trackdb-int.h \
87 trackname.c trackorder.c trackname.h \
88 tracksort.c \
89 uaudio.c uaudio-thread.c uaudio.h uaudio-apis.c \
90 uaudio-oss.c uaudio-alsa.c \
91 uaudio-pulseaudio.c \
92 uaudio-coreaudio.c \
93 uaudio-rtp.c uaudio-command.c uaudio-schedule.c \
94 url.h url.c \
95 user.h user.c \
96 unicode.h unicode.c \
97 unidata.h unidata.c \
98 vacopy.h \
99 validity.c validity.h \
100 vector.c vector.h \
101 version.c version.h \
102 versionstring.c \
103 wav.h \
104 wstat.c wstat.h \
105 disorder.h
106 nodist_libdisorder_a_SOURCES=hreader.c \
107 wav.c
108
109 version-string: ../config.status ${top_srcdir}/scripts/make-version-string
110 CC="${CC}" ${top_srcdir}/scripts/make-version-string > $@.new
111 @if cmp $@.new $@; then \
112 echo rm -f $@.new; rm -f $@.new; else \
113 echo mv $@.new $@; mv $@.new $@; fi
114
115 versionstring.c: version-string ${top_srcdir}/scripts/text2c
116 ${top_srcdir}/scripts/text2c -extern disorder_version_string \
117 version-string > $@.new
118 @if cmp $@.new $@; then \
119 echo rm -f $@.new; rm -f $@.new; else \
120 echo mv $@.new $@; mv $@.new $@; fi
121
122 definitions.h: Makefile
123 rm -f $@.new
124 echo "/** @file lib/definitions.h" >> $@.new
125 echo " * @brief Definitions exported from makefile" >> $@.new
126 echo " *" >> $@.new
127 echo " * DO NOT EDIT." >> $@.new
128 echo " */" >> $@.new
129 echo "#define PKGLIBDIR \"${pkglibdir}\"" >> $@.new
130 echo "#define PKGCONFDIR \"${sysconfdir}/\"PACKAGE" >> $@.new
131 echo "#define PKGSTATEDIR \"${localstatedir}/\"PACKAGE" >> $@.new
132 echo "#define PKGDATADIR \"${pkgdatadir}/\"" >> $@.new
133 echo "#define DOCHTMLDIR \"${dochtmldir}\"" >> $@.new
134 echo "#define SBINDIR \"${sbindir}/\"" >> $@.new
135 echo "#define BINDIR \"${bindir}/\"" >> $@.new
136 echo "#define FINKBINDIR \"${finkbindir}/\"" >> $@.new
137 echo "#define SENDMAIL \"${SENDMAIL}\"" >> $@.new
138 @if cmp $@.new $@; then \
139 echo rm -f $@.new; rm -f $@.new; else \
140 echo mv $@.new $@; mv $@.new $@; fi
141 defs.o: definitions.h
142 defs.lo: definitions.h
143
144 client.o: client-stubs.c
145
146 rebuild-unicode:
147 cd ${srcdir} && ${top_srcdir}/scripts/make-unidata
148
149 CLEANFILES=definitions.h definitions.h.new version-string versionstring.[ch] \
150 *.gcda *.gcov *.gcno *.c.html index.html
151
152 EXTRA_DIST=trackdb.c trackdb-stub.c client-stubs.c eclient-stubs.c \
153 getopt.c getopt.h getopt1.c \
154 disorder-win32.c disorder-win32.h \
155 lib.vcxproj lib.vcxproj.filters