Commit | Line | Data |
---|---|---|
460b9539 | 1 | # |
2 | # This file is part of DisOrder. | |
5db8461a | 3 | # Copyright (C) 2004-2010, 2012, 2013 Richard Kettlewell |
460b9539 | 4 | # |
e7eb3a27 | 5 | # This program is free software: you can redistribute it and/or modify |
460b9539 | 6 | # it under the terms of the GNU General Public License as published by |
e7eb3a27 | 7 | # the Free Software Foundation, either version 3 of the License, or |
460b9539 | 8 | # (at your option) any later version. |
c39c1a80 | 9 | # |
e7eb3a27 RK |
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. | |
c39c1a80 | 14 | # |
460b9539 | 15 | # You should have received a copy of the GNU General Public License |
e7eb3a27 | 16 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
460b9539 | 17 | # |
18 | ||
0b861e97 | 19 | noinst_LIBRARIES=libdisorder.a |
460b9539 | 20 | include_HEADERS=disorder.h |
460b9539 | 21 | |
e63c38e8 | 22 | if SERVER |
7aca3c62 | 23 | TRACKDB=trackdb.c trackdb-playlists.c |
e63c38e8 RK |
24 | else |
25 | TRACKDB=trackdb-stub.c | |
26 | endif | |
27 | ||
f74f4f32 | 28 | libdisorder_a_SOURCES=charset.c charsetf.c charset.h \ |
460b9539 | 29 | addr.c addr.h \ |
fcdff139 | 30 | arcfour.c arcfour.h \ |
460b9539 | 31 | authhash.c authhash.h \ |
32 | basen.c basen.h \ | |
fce810c2 | 33 | base64.c base64.h \ |
f9d42b20 | 34 | bits.c bits.h \ |
929f577e | 35 | byte-order.h \ |
460b9539 | 36 | cache.c cache.h \ |
5b708e0c | 37 | cgi.c cgi.h \ |
c39c1a80 | 38 | client.c client.h client-stubs.h \ |
460b9539 | 39 | client-common.c client-common.h \ |
40 | configuration.c configuration.h \ | |
b12be54a | 41 | cookies.c cookies.h \ |
f5fd9a6b | 42 | coreaudio.c coreaudio.h \ |
d436bd52 | 43 | dateparse.c dateparse.h xgetdate.c \ |
460b9539 | 44 | defs.c defs.h \ |
46b43833 | 45 | eclient.c eclient.h eclient-stubs.h \ |
f66203a2 | 46 | email.c \ |
eb5e0673 | 47 | eventdist.c eventdist.h \ |
460b9539 | 48 | event.c event.h \ |
49 | eventlog.c eventlog.h \ | |
50 | filepart.c filepart.h \ | |
51 | hash.c hash.h \ | |
22168975 | 52 | heap.h \ |
460b9539 | 53 | hex.c hex.h \ |
bb6ae3fb | 54 | hostname.c hostname.h \ |
5e57438c | 55 | hreader.c hreader.h \ |
81b1bf12 | 56 | ifreq.c ifreq.h \ |
460b9539 | 57 | inputline.c inputline.h \ |
58 | kvp.c kvp.h \ | |
093ec810 | 59 | log.c log.h \ |
460b9539 | 60 | logfd.c logfd.h \ |
f640bcb3 | 61 | macros.c macros-builtin.c macros.h \ |
093ec810 | 62 | mem.c mem.h \ |
460b9539 | 63 | mime.h mime.c \ |
460b9539 | 64 | printf.c printf.h \ |
65 | asprintf.c fprintf.c snprintf.c \ | |
66 | queue.c queue.h \ | |
fcdff139 | 67 | random.c random.h \ |
460b9539 | 68 | regsub.c regsub.h \ |
0e8c21de | 69 | resample.c resample.h \ |
938d8157 | 70 | rights.c queue-rights.c rights.h \ |
e83d0967 | 71 | rtp.h \ |
460b9539 | 72 | selection.c selection.h \ |
bb6ae3fb | 73 | sendmail.c sendmail.h \ |
460b9539 | 74 | signame.c signame.h \ |
75 | sink.c sink.h \ | |
aa846a75 | 76 | socketio.c socketio.h \ |
ea410ba1 | 77 | speaker-protocol.c speaker-protocol.h \ |
460b9539 | 78 | split.c split.h \ |
477f956c | 79 | strptime.c strptime.h \ |
5db8461a | 80 | syscalls.c syscallsrt.c syscalls.h \ |
4ba9806f | 81 | common.h \ |
460b9539 | 82 | table.c table.h \ |
e83d0967 | 83 | timeval.h \ |
e63c38e8 | 84 | $(TRACKDB) trackdb.h trackdb-int.h \ |
e307c6fe | 85 | trackname.c trackorder.c trackname.h \ |
2fadbbc6 | 86 | tracksort.c \ |
efd23a80 | 87 | uaudio.c uaudio-thread.c uaudio.h uaudio-apis.c \ |
4fd38868 | 88 | uaudio-oss.c uaudio-alsa.c \ |
de0ef46e | 89 | uaudio-pulseaudio.c \ |
4fd38868 | 90 | uaudio-coreaudio.c \ |
ec57f6c9 | 91 | uaudio-rtp.c uaudio-command.c uaudio-schedule.c \ |
36bde473 | 92 | url.h url.c \ |
460b9539 | 93 | user.h user.c \ |
e5a5a138 | 94 | unicode.h unicode.c \ |
61507e3c | 95 | unidata.h unidata.c \ |
460b9539 | 96 | vacopy.h \ |
7f7c3819 | 97 | validity.c validity.h \ |
460b9539 | 98 | vector.c vector.h \ |
3fbdc96d | 99 | version.c version.h \ |
9bd9e192 | 100 | versionstring.c \ |
ce6c36be | 101 | wav.h wav.c \ |
460b9539 | 102 | wstat.c wstat.h \ |
103 | disorder.h | |
460b9539 | 104 | |
a05e4467 RK |
105 | version-string: ../config.status ${top_srcdir}/scripts/make-version-string |
106 | CC="${CC}" ${top_srcdir}/scripts/make-version-string > $@.new | |
107 | @if cmp $@.new $@; then \ | |
108 | echo rm -f $@.new; rm -f $@.new; else \ | |
109 | echo mv $@.new $@; mv $@.new $@; fi | |
110 | ||
9bd9e192 | 111 | versionstring.c: version-string ${top_srcdir}/scripts/text2c |
a05e4467 RK |
112 | ${top_srcdir}/scripts/text2c -extern disorder_version_string \ |
113 | version-string > $@.new | |
114 | @if cmp $@.new $@; then \ | |
115 | echo rm -f $@.new; rm -f $@.new; else \ | |
116 | echo mv $@.new $@; mv $@.new $@; fi | |
117 | ||
460b9539 | 118 | definitions.h: Makefile |
119 | rm -f $@.new | |
132a5a4a RK |
120 | echo "/** @file lib/definitions.h" >> $@.new |
121 | echo " * @brief Definitions exported from makefile" >> $@.new | |
122 | echo " *" >> $@.new | |
123 | echo " * DO NOT EDIT." >> $@.new | |
124 | echo " */" >> $@.new | |
125 | echo "#define PKGLIBDIR \"${pkglibdir}\"" >> $@.new | |
460b9539 | 126 | echo "#define PKGCONFDIR \"${sysconfdir}/\"PACKAGE" >> $@.new |
127 | echo "#define PKGSTATEDIR \"${localstatedir}/\"PACKAGE" >> $@.new | |
128 | echo "#define PKGDATADIR \"${pkgdatadir}/\"" >> $@.new | |
7e960883 | 129 | echo "#define DOCHTMLDIR \"${dochtmldir}\"" >> $@.new |
e83d0967 RK |
130 | echo "#define SBINDIR \"${sbindir}/\"" >> $@.new |
131 | echo "#define BINDIR \"${bindir}/\"" >> $@.new | |
132 | echo "#define FINKBINDIR \"${finkbindir}/\"" >> $@.new | |
2eee4b0c | 133 | echo "#define SENDMAIL \"${SENDMAIL}\"" >> $@.new |
66ec39ed RK |
134 | @if cmp $@.new $@; then \ |
135 | echo rm -f $@.new; rm -f $@.new; else \ | |
136 | echo mv $@.new $@; mv $@.new $@; fi | |
9bd9e192 RK |
137 | defs.o: definitions.h |
138 | defs.lo: definitions.h | |
460b9539 | 139 | |
c39c1a80 RK |
140 | client.o: client-stubs.c |
141 | ||
e5a5a138 RK |
142 | rebuild-unicode: |
143 | cd ${srcdir} && ${top_srcdir}/scripts/make-unidata | |
144 | ||
3943e9ec | 145 | CLEANFILES=definitions.h definitions.h.new version-string versionstring.h \ |
67e8149c | 146 | *.gcda *.gcov *.gcno *.c.html index.html |
e63c38e8 | 147 | |
46b43833 | 148 | EXTRA_DIST=trackdb.c trackdb-stub.c client-stubs.c eclient-stubs.c |