chiark / gitweb /
Better visual feedback in users window: the apply button is
[disorder] / lib / Makefile.am
CommitLineData
460b9539 1#
2# This file is part of DisOrder.
4dadf1a2 3# Copyright (C) 2004-2008 Richard Kettlewell
460b9539 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 2 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, but
11# WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13# 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, write to the Free Software
17# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18# USA
19#
20
0b861e97 21noinst_LIBRARIES=libdisorder.a
460b9539 22include_HEADERS=disorder.h
460b9539 23
e63c38e8
RK
24if SERVER
25TRACKDB=trackdb.c
26else
27TRACKDB=trackdb-stub.c
28endif
29
0b861e97 30libdisorder_a_SOURCES=charset.c charset.h \
460b9539 31 addr.c addr.h \
4dadf1a2 32 alsabg.c alsabg.h \
fcdff139 33 arcfour.c arcfour.h \
460b9539 34 authhash.c authhash.h \
35 basen.c basen.h \
fce810c2 36 base64.c base64.h \
f9d42b20 37 bits.c bits.h \
460b9539 38 cache.c cache.h \
5b708e0c 39 cgi.c cgi.h \
460b9539 40 client.c client.h \
41 client-common.c client-common.h \
42 configuration.c configuration.h \
b12be54a 43 cookies.c cookies.h \
d436bd52 44 dateparse.c dateparse.h xgetdate.c \
460b9539 45 defs.c defs.h \
46 eclient.c eclient.h \
f66203a2 47 email.c \
eb5e0673 48 eventdist.c eventdist.h \
460b9539 49 event.c event.h \
50 eventlog.c eventlog.h \
51 filepart.c filepart.h \
52 hash.c hash.h \
22168975 53 heap.h \
460b9539 54 hex.c hex.h \
bb6ae3fb 55 hostname.c hostname.h \
81b1bf12 56 ifreq.c ifreq.h \
460b9539 57 inputline.c inputline.h \
58 kvp.c kvp.h \
59 log.c log.h log-impl.h \
60 logfd.c logfd.h \
f640bcb3 61 macros.c macros-builtin.c macros.h \
460b9539 62 mem.c mem.h mem-impl.h \
63 mime.h mime.c \
b25aac59 64 mixer.c mixer.h mixer-oss.c mixer-alsa.c \
460b9539 65 printf.c printf.h \
66 asprintf.c fprintf.c snprintf.c \
67 queue.c queue.h \
fcdff139 68 random.c random.h \
460b9539 69 regsub.c regsub.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 \
ea410ba1 76 speaker-protocol.c speaker-protocol.h \
460b9539 77 split.c split.h \
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 \
36bde473 85 url.h url.c \
460b9539 86 user.h user.c \
e5a5a138 87 unicode.h unicode.c \
61507e3c 88 unidata.h unidata.c \
460b9539 89 vacopy.h \
90 vector.c vector.h \
3fbdc96d 91 version.c version.h \
ce6c36be 92 wav.h wav.c \
460b9539 93 wstat.c wstat.h \
94 disorder.h
460b9539 95
a05e4467
RK
96version-string: ../config.status ${top_srcdir}/scripts/make-version-string
97 CC="${CC}" ${top_srcdir}/scripts/make-version-string > $@.new
98 @if cmp $@.new $@; then \
99 echo rm -f $@.new; rm -f $@.new; else \
100 echo mv $@.new $@; mv $@.new $@; fi
101
3fbdc96d 102versionstring.h: version-string ${top_srcdir}/scripts/text2c
a05e4467
RK
103 ${top_srcdir}/scripts/text2c -extern disorder_version_string \
104 version-string > $@.new
105 @if cmp $@.new $@; then \
106 echo rm -f $@.new; rm -f $@.new; else \
107 echo mv $@.new $@; mv $@.new $@; fi
108
460b9539 109definitions.h: Makefile
110 rm -f $@.new
111 echo "#define PKGLIBDIR \"${pkglibdir}\"" > $@.new
112 echo "#define PKGCONFDIR \"${sysconfdir}/\"PACKAGE" >> $@.new
113 echo "#define PKGSTATEDIR \"${localstatedir}/\"PACKAGE" >> $@.new
114 echo "#define PKGDATADIR \"${pkgdatadir}/\"" >> $@.new
e83d0967
RK
115 echo "#define SBINDIR \"${sbindir}/\"" >> $@.new
116 echo "#define BINDIR \"${bindir}/\"" >> $@.new
117 echo "#define FINKBINDIR \"${finkbindir}/\"" >> $@.new
2eee4b0c 118 echo "#define SENDMAIL \"${SENDMAIL}\"" >> $@.new
66ec39ed
RK
119 @if cmp $@.new $@; then \
120 echo rm -f $@.new; rm -f $@.new; else \
121 echo mv $@.new $@; mv $@.new $@; fi
3fbdc96d
RK
122defs.o: definitions.h versionstring.h
123defs.lo: definitions.h versionstring.h
460b9539 124
e5a5a138
RK
125rebuild-unicode:
126 cd ${srcdir} && ${top_srcdir}/scripts/make-unidata
127
033fd4e3
RK
128%.i: %.c
129 $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) -c $< > $@.new
130 mv $@.new $@
131
3943e9ec
RK
132CLEANFILES=definitions.h definitions.h.new version-string versionstring.h \
133 *.gcda *.gcov *.gcno
e63c38e8 134
7affb407 135EXTRA_DIST=trackdb.c trackdb-stub.c