Commit | Line | Data |
---|---|---|
460b9539 | 1 | # |
2 | # This file is part of DisOrder. | |
7a2c7068 | 3 | # Copyright (C) 2004-2009 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. |
e7eb3a27 RK |
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 | # | |
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 RK |
22 | if SERVER |
23 | TRACKDB=trackdb.c | |
24 | else | |
25 | TRACKDB=trackdb-stub.c | |
26 | endif | |
27 | ||
0b861e97 | 28 | libdisorder_a_SOURCES=charset.c charset.h \ |
460b9539 | 29 | addr.c addr.h \ |
4dadf1a2 | 30 | alsabg.c alsabg.h \ |
fcdff139 | 31 | arcfour.c arcfour.h \ |
460b9539 | 32 | authhash.c authhash.h \ |
33 | basen.c basen.h \ | |
fce810c2 | 34 | base64.c base64.h \ |
f9d42b20 | 35 | bits.c bits.h \ |
460b9539 | 36 | cache.c cache.h \ |
5b708e0c | 37 | cgi.c cgi.h \ |
460b9539 | 38 | client.c client.h \ |
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 \ |
45 | eclient.c eclient.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 \ |
81b1bf12 | 55 | ifreq.c ifreq.h \ |
460b9539 | 56 | inputline.c inputline.h \ |
57 | kvp.c kvp.h \ | |
093ec810 | 58 | log.c log.h \ |
460b9539 | 59 | logfd.c logfd.h \ |
f640bcb3 | 60 | macros.c macros-builtin.c macros.h \ |
093ec810 | 61 | mem.c mem.h \ |
460b9539 | 62 | mime.h mime.c \ |
b25aac59 | 63 | mixer.c mixer.h mixer-oss.c mixer-alsa.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 \ |
938d8157 | 69 | rights.c queue-rights.c rights.h \ |
e83d0967 | 70 | rtp.h \ |
460b9539 | 71 | selection.c selection.h \ |
bb6ae3fb | 72 | sendmail.c sendmail.h \ |
460b9539 | 73 | signame.c signame.h \ |
74 | sink.c sink.h \ | |
ea410ba1 | 75 | speaker-protocol.c speaker-protocol.h \ |
460b9539 | 76 | split.c split.h \ |
477f956c | 77 | strptime.c strptime.h \ |
460b9539 | 78 | syscalls.c syscalls.h \ |
4ba9806f | 79 | common.h \ |
460b9539 | 80 | table.c table.h \ |
e83d0967 | 81 | timeval.h \ |
e63c38e8 | 82 | $(TRACKDB) trackdb.h trackdb-int.h \ |
e307c6fe | 83 | trackname.c trackorder.c trackname.h \ |
2fadbbc6 | 84 | tracksort.c \ |
4fd38868 RK |
85 | uaudio.c uaudio-thread.c uaudio.h \ |
86 | uaudio-oss.c uaudio-alsa.c \ | |
87 | uaudio-coreaudio.c \ | |
e8c185c3 | 88 | uaudio-rtp.c uaudio-command.c \ |
36bde473 | 89 | url.h url.c \ |
460b9539 | 90 | user.h user.c \ |
e5a5a138 | 91 | unicode.h unicode.c \ |
61507e3c | 92 | unidata.h unidata.c \ |
460b9539 | 93 | vacopy.h \ |
94 | vector.c vector.h \ | |
3fbdc96d | 95 | version.c version.h \ |
ce6c36be | 96 | wav.h wav.c \ |
460b9539 | 97 | wstat.c wstat.h \ |
98 | disorder.h | |
460b9539 | 99 | |
a05e4467 RK |
100 | version-string: ../config.status ${top_srcdir}/scripts/make-version-string |
101 | CC="${CC}" ${top_srcdir}/scripts/make-version-string > $@.new | |
102 | @if cmp $@.new $@; then \ | |
103 | echo rm -f $@.new; rm -f $@.new; else \ | |
104 | echo mv $@.new $@; mv $@.new $@; fi | |
105 | ||
3fbdc96d | 106 | versionstring.h: version-string ${top_srcdir}/scripts/text2c |
a05e4467 RK |
107 | ${top_srcdir}/scripts/text2c -extern disorder_version_string \ |
108 | version-string > $@.new | |
109 | @if cmp $@.new $@; then \ | |
110 | echo rm -f $@.new; rm -f $@.new; else \ | |
111 | echo mv $@.new $@; mv $@.new $@; fi | |
112 | ||
460b9539 | 113 | definitions.h: Makefile |
114 | rm -f $@.new | |
132a5a4a RK |
115 | echo "/** @file lib/definitions.h" >> $@.new |
116 | echo " * @brief Definitions exported from makefile" >> $@.new | |
117 | echo " *" >> $@.new | |
118 | echo " * DO NOT EDIT." >> $@.new | |
119 | echo " */" >> $@.new | |
120 | echo "#define PKGLIBDIR \"${pkglibdir}\"" >> $@.new | |
460b9539 | 121 | echo "#define PKGCONFDIR \"${sysconfdir}/\"PACKAGE" >> $@.new |
122 | echo "#define PKGSTATEDIR \"${localstatedir}/\"PACKAGE" >> $@.new | |
123 | echo "#define PKGDATADIR \"${pkgdatadir}/\"" >> $@.new | |
e83d0967 RK |
124 | echo "#define SBINDIR \"${sbindir}/\"" >> $@.new |
125 | echo "#define BINDIR \"${bindir}/\"" >> $@.new | |
126 | echo "#define FINKBINDIR \"${finkbindir}/\"" >> $@.new | |
2eee4b0c | 127 | echo "#define SENDMAIL \"${SENDMAIL}\"" >> $@.new |
66ec39ed RK |
128 | @if cmp $@.new $@; then \ |
129 | echo rm -f $@.new; rm -f $@.new; else \ | |
130 | echo mv $@.new $@; mv $@.new $@; fi | |
3fbdc96d RK |
131 | defs.o: definitions.h versionstring.h |
132 | defs.lo: definitions.h versionstring.h | |
460b9539 | 133 | |
e5a5a138 RK |
134 | rebuild-unicode: |
135 | cd ${srcdir} && ${top_srcdir}/scripts/make-unidata | |
136 | ||
033fd4e3 RK |
137 | %.i: %.c |
138 | $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) -c $< > $@.new | |
139 | mv $@.new $@ | |
140 | ||
3943e9ec | 141 | CLEANFILES=definitions.h definitions.h.new version-string versionstring.h \ |
67e8149c | 142 | *.gcda *.gcov *.gcno *.c.html index.html |
e63c38e8 | 143 | |
7affb407 | 144 | EXTRA_DIST=trackdb.c trackdb-stub.c |