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 | ||
3e1d9716 MW |
19 | VPATH+=${top_srcdir}/common |
20 | ||
0b861e97 | 21 | noinst_LIBRARIES=libdisorder.a |
460b9539 | 22 | include_HEADERS=disorder.h |
460b9539 | 23 | |
e63c38e8 | 24 | if SERVER |
7aca3c62 | 25 | TRACKDB=trackdb.c trackdb-playlists.c |
e63c38e8 RK |
26 | else |
27 | TRACKDB=trackdb-stub.c | |
28 | endif | |
29 | ||
f74f4f32 | 30 | libdisorder_a_SOURCES=charset.c charsetf.c charset.h \ |
460b9539 | 31 | addr.c addr.h \ |
fcdff139 | 32 | arcfour.c arcfour.h \ |
460b9539 | 33 | authhash.c authhash.h \ |
34 | basen.c basen.h \ | |
fce810c2 | 35 | base64.c base64.h \ |
f9d42b20 | 36 | bits.c bits.h \ |
929f577e | 37 | byte-order.h \ |
460b9539 | 38 | cache.c cache.h \ |
5b708e0c | 39 | cgi.c cgi.h \ |
c39c1a80 | 40 | client.c client.h client-stubs.h \ |
460b9539 | 41 | client-common.c client-common.h \ |
42 | configuration.c configuration.h \ | |
b12be54a | 43 | cookies.c cookies.h \ |
f5fd9a6b | 44 | coreaudio.c coreaudio.h \ |
d436bd52 | 45 | dateparse.c dateparse.h xgetdate.c \ |
460b9539 | 46 | defs.c defs.h \ |
46b43833 | 47 | eclient.c eclient.h eclient-stubs.h \ |
f66203a2 | 48 | email.c \ |
eb5e0673 | 49 | eventdist.c eventdist.h \ |
460b9539 | 50 | event.c event.h \ |
51 | eventlog.c eventlog.h \ | |
52 | filepart.c filepart.h \ | |
53 | hash.c hash.h \ | |
22168975 | 54 | heap.h \ |
460b9539 | 55 | hex.c hex.h \ |
bb6ae3fb | 56 | hostname.c hostname.h \ |
3e1d9716 | 57 | hreader.h \ |
81b1bf12 | 58 | ifreq.c ifreq.h \ |
460b9539 | 59 | inputline.c inputline.h \ |
60 | kvp.c kvp.h \ | |
093ec810 | 61 | log.c log.h \ |
460b9539 | 62 | logfd.c logfd.h \ |
f640bcb3 | 63 | macros.c macros-builtin.c macros.h \ |
093ec810 | 64 | mem.c mem.h \ |
460b9539 | 65 | mime.h mime.c \ |
460b9539 | 66 | printf.c printf.h \ |
67 | asprintf.c fprintf.c snprintf.c \ | |
68 | queue.c queue.h \ | |
fcdff139 | 69 | random.c random.h \ |
a2e9d147 | 70 | regexp.c regexp.h \ |
460b9539 | 71 | regsub.c regsub.h \ |
0e8c21de | 72 | resample.c resample.h \ |
938d8157 | 73 | rights.c queue-rights.c rights.h \ |
e83d0967 | 74 | rtp.h \ |
460b9539 | 75 | selection.c selection.h \ |
bb6ae3fb | 76 | sendmail.c sendmail.h \ |
460b9539 | 77 | signame.c signame.h \ |
78 | sink.c sink.h \ | |
aa846a75 | 79 | socketio.c socketio.h \ |
ea410ba1 | 80 | speaker-protocol.c speaker-protocol.h \ |
460b9539 | 81 | split.c split.h \ |
477f956c | 82 | strptime.c strptime.h \ |
5db8461a | 83 | syscalls.c syscallsrt.c syscalls.h \ |
4ba9806f | 84 | common.h \ |
460b9539 | 85 | table.c table.h \ |
e83d0967 | 86 | timeval.h \ |
e63c38e8 | 87 | $(TRACKDB) trackdb.h trackdb-int.h \ |
e307c6fe | 88 | trackname.c trackorder.c trackname.h \ |
2fadbbc6 | 89 | tracksort.c \ |
efd23a80 | 90 | uaudio.c uaudio-thread.c uaudio.h uaudio-apis.c \ |
4fd38868 | 91 | uaudio-oss.c uaudio-alsa.c \ |
de0ef46e | 92 | uaudio-pulseaudio.c \ |
4fd38868 | 93 | uaudio-coreaudio.c \ |
ec57f6c9 | 94 | uaudio-rtp.c uaudio-command.c uaudio-schedule.c \ |
36bde473 | 95 | url.h url.c \ |
460b9539 | 96 | user.h user.c \ |
e5a5a138 | 97 | unicode.h unicode.c \ |
61507e3c | 98 | unidata.h unidata.c \ |
460b9539 | 99 | vacopy.h \ |
7f7c3819 | 100 | validity.c validity.h \ |
460b9539 | 101 | vector.c vector.h \ |
3fbdc96d | 102 | version.c version.h \ |
9bd9e192 | 103 | versionstring.c \ |
3e1d9716 | 104 | wav.h \ |
460b9539 | 105 | wstat.c wstat.h \ |
106 | disorder.h | |
3e1d9716 MW |
107 | nodist_libdisorder_a_SOURCES=hreader.c \ |
108 | wav.c | |
460b9539 | 109 | |
a05e4467 RK |
110 | version-string: ../config.status ${top_srcdir}/scripts/make-version-string |
111 | CC="${CC}" ${top_srcdir}/scripts/make-version-string > $@.new | |
112 | @if cmp $@.new $@; then \ | |
113 | echo rm -f $@.new; rm -f $@.new; else \ | |
114 | echo mv $@.new $@; mv $@.new $@; fi | |
115 | ||
9bd9e192 | 116 | versionstring.c: version-string ${top_srcdir}/scripts/text2c |
a05e4467 RK |
117 | ${top_srcdir}/scripts/text2c -extern disorder_version_string \ |
118 | version-string > $@.new | |
119 | @if cmp $@.new $@; then \ | |
120 | echo rm -f $@.new; rm -f $@.new; else \ | |
121 | echo mv $@.new $@; mv $@.new $@; fi | |
122 | ||
460b9539 | 123 | definitions.h: Makefile |
124 | rm -f $@.new | |
132a5a4a RK |
125 | echo "/** @file lib/definitions.h" >> $@.new |
126 | echo " * @brief Definitions exported from makefile" >> $@.new | |
127 | echo " *" >> $@.new | |
128 | echo " * DO NOT EDIT." >> $@.new | |
129 | echo " */" >> $@.new | |
130 | echo "#define PKGLIBDIR \"${pkglibdir}\"" >> $@.new | |
460b9539 | 131 | echo "#define PKGCONFDIR \"${sysconfdir}/\"PACKAGE" >> $@.new |
132 | echo "#define PKGSTATEDIR \"${localstatedir}/\"PACKAGE" >> $@.new | |
133 | echo "#define PKGDATADIR \"${pkgdatadir}/\"" >> $@.new | |
7e960883 | 134 | echo "#define DOCHTMLDIR \"${dochtmldir}\"" >> $@.new |
e83d0967 RK |
135 | echo "#define SBINDIR \"${sbindir}/\"" >> $@.new |
136 | echo "#define BINDIR \"${bindir}/\"" >> $@.new | |
137 | echo "#define FINKBINDIR \"${finkbindir}/\"" >> $@.new | |
2eee4b0c | 138 | echo "#define SENDMAIL \"${SENDMAIL}\"" >> $@.new |
66ec39ed RK |
139 | @if cmp $@.new $@; then \ |
140 | echo rm -f $@.new; rm -f $@.new; else \ | |
141 | echo mv $@.new $@; mv $@.new $@; fi | |
9bd9e192 RK |
142 | defs.o: definitions.h |
143 | defs.lo: definitions.h | |
460b9539 | 144 | |
c39c1a80 RK |
145 | client.o: client-stubs.c |
146 | ||
e5a5a138 RK |
147 | rebuild-unicode: |
148 | cd ${srcdir} && ${top_srcdir}/scripts/make-unidata | |
149 | ||
3e1d9716 | 150 | CLEANFILES=definitions.h definitions.h.new version-string versionstring.[ch] \ |
67e8149c | 151 | *.gcda *.gcov *.gcno *.c.html index.html |
e63c38e8 | 152 | |
9e42afcd RK |
153 | EXTRA_DIST=trackdb.c trackdb-stub.c client-stubs.c eclient-stubs.c \ |
154 | getopt.c getopt.h getopt1.c \ | |
155 | disorder-win32.c disorder-win32.h \ | |
156 | lib.vcxproj lib.vcxproj.filters |