chiark / gitweb /
Set resource limits on the server to prevent more than FD_SETSIZE
[disorder] / lib / Makefile.am
CommitLineData
460b9539 1#
2# This file is part of DisOrder.
4dadf1a2 3# Copyright (C) 2004-2008 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 19noinst_LIBRARIES=libdisorder.a
460b9539 20include_HEADERS=disorder.h
460b9539 21
e63c38e8
RK
22if SERVER
23TRACKDB=trackdb.c
24else
25TRACKDB=trackdb-stub.c
26endif
27
0b861e97 28libdisorder_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 \
d436bd52 42 dateparse.c dateparse.h xgetdate.c \
460b9539 43 defs.c defs.h \
44 eclient.c eclient.h \
f66203a2 45 email.c \
eb5e0673 46 eventdist.c eventdist.h \
460b9539 47 event.c event.h \
48 eventlog.c eventlog.h \
49 filepart.c filepart.h \
50 hash.c hash.h \
22168975 51 heap.h \
460b9539 52 hex.c hex.h \
bb6ae3fb 53 hostname.c hostname.h \
81b1bf12 54 ifreq.c ifreq.h \
460b9539 55 inputline.c inputline.h \
56 kvp.c kvp.h \
57 log.c log.h log-impl.h \
58 logfd.c logfd.h \
f640bcb3 59 macros.c macros-builtin.c macros.h \
460b9539 60 mem.c mem.h mem-impl.h \
61 mime.h mime.c \
b25aac59 62 mixer.c mixer.h mixer-oss.c mixer-alsa.c \
460b9539 63 printf.c printf.h \
64 asprintf.c fprintf.c snprintf.c \
65 queue.c queue.h \
fcdff139 66 random.c random.h \
460b9539 67 regsub.c regsub.h \
938d8157 68 rights.c queue-rights.c rights.h \
e83d0967 69 rtp.h \
460b9539 70 selection.c selection.h \
bb6ae3fb 71 sendmail.c sendmail.h \
460b9539 72 signame.c signame.h \
73 sink.c sink.h \
ea410ba1 74 speaker-protocol.c speaker-protocol.h \
460b9539 75 split.c split.h \
477f956c 76 strptime.c strptime.h \
460b9539 77 syscalls.c syscalls.h \
4ba9806f 78 common.h \
460b9539 79 table.c table.h \
e83d0967 80 timeval.h \
e63c38e8 81 $(TRACKDB) trackdb.h trackdb-int.h \
e307c6fe 82 trackname.c trackorder.c trackname.h \
2fadbbc6 83 tracksort.c \
36bde473 84 url.h url.c \
460b9539 85 user.h user.c \
e5a5a138 86 unicode.h unicode.c \
61507e3c 87 unidata.h unidata.c \
460b9539 88 vacopy.h \
89 vector.c vector.h \
3fbdc96d 90 version.c version.h \
ce6c36be 91 wav.h wav.c \
460b9539 92 wstat.c wstat.h \
93 disorder.h
460b9539 94
a05e4467
RK
95version-string: ../config.status ${top_srcdir}/scripts/make-version-string
96 CC="${CC}" ${top_srcdir}/scripts/make-version-string > $@.new
97 @if cmp $@.new $@; then \
98 echo rm -f $@.new; rm -f $@.new; else \
99 echo mv $@.new $@; mv $@.new $@; fi
100
3fbdc96d 101versionstring.h: version-string ${top_srcdir}/scripts/text2c
a05e4467
RK
102 ${top_srcdir}/scripts/text2c -extern disorder_version_string \
103 version-string > $@.new
104 @if cmp $@.new $@; then \
105 echo rm -f $@.new; rm -f $@.new; else \
106 echo mv $@.new $@; mv $@.new $@; fi
107
460b9539 108definitions.h: Makefile
109 rm -f $@.new
132a5a4a
RK
110 echo "/** @file lib/definitions.h" >> $@.new
111 echo " * @brief Definitions exported from makefile" >> $@.new
112 echo " *" >> $@.new
113 echo " * DO NOT EDIT." >> $@.new
114 echo " */" >> $@.new
115 echo "#define PKGLIBDIR \"${pkglibdir}\"" >> $@.new
460b9539 116 echo "#define PKGCONFDIR \"${sysconfdir}/\"PACKAGE" >> $@.new
117 echo "#define PKGSTATEDIR \"${localstatedir}/\"PACKAGE" >> $@.new
118 echo "#define PKGDATADIR \"${pkgdatadir}/\"" >> $@.new
e83d0967
RK
119 echo "#define SBINDIR \"${sbindir}/\"" >> $@.new
120 echo "#define BINDIR \"${bindir}/\"" >> $@.new
121 echo "#define FINKBINDIR \"${finkbindir}/\"" >> $@.new
2eee4b0c 122 echo "#define SENDMAIL \"${SENDMAIL}\"" >> $@.new
66ec39ed
RK
123 @if cmp $@.new $@; then \
124 echo rm -f $@.new; rm -f $@.new; else \
125 echo mv $@.new $@; mv $@.new $@; fi
3fbdc96d
RK
126defs.o: definitions.h versionstring.h
127defs.lo: definitions.h versionstring.h
460b9539 128
e5a5a138
RK
129rebuild-unicode:
130 cd ${srcdir} && ${top_srcdir}/scripts/make-unidata
131
033fd4e3
RK
132%.i: %.c
133 $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) -c $< > $@.new
134 mv $@.new $@
135
3943e9ec 136CLEANFILES=definitions.h definitions.h.new version-string versionstring.h \
67e8149c 137 *.gcda *.gcov *.gcno *.c.html index.html
e63c38e8 138
7affb407 139EXTRA_DIST=trackdb.c trackdb-stub.c