chiark / gitweb /
mktemp is (1) Essential: yes and (2) not in dapper (which has it in
[disorder] / lib / Makefile.am
... / ...
CommitLineData
1#
2# This file is part of DisOrder.
3# Copyright (C) 2004-2008 Richard Kettlewell
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
21noinst_LIBRARIES=libdisorder.a
22include_HEADERS=disorder.h
23noinst_PROGRAMS=test
24
25libdisorder_a_SOURCES=charset.c charset.h \
26 addr.c addr.h \
27 alsabg.c alsabg.h \
28 authhash.c authhash.h \
29 basen.c basen.h \
30 base64.c base64.h \
31 cache.c cache.h \
32 client.c client.h \
33 client-common.c client-common.h \
34 configuration.c configuration.h \
35 cookies.c cookies.h \
36 defs.c defs.h \
37 eclient.c eclient.h \
38 event.c event.h \
39 eventlog.c eventlog.h \
40 filepart.c filepart.h \
41 hash.c hash.h \
42 heap.h \
43 hex.c hex.h \
44 hostname.c hostname.h \
45 ifreq.c ifreq.h \
46 inputline.c inputline.h \
47 kvp.c kvp.h \
48 log.c log.h log-impl.h \
49 logfd.c logfd.h \
50 mem.c mem.h mem-impl.h \
51 mime.h mime.c \
52 mixer.c mixer.h mixer-oss.c mixer-alsa.c \
53 plugin.c plugin.h \
54 printf.c printf.h \
55 asprintf.c fprintf.c snprintf.c \
56 queue.c queue.h \
57 regsub.c regsub.h \
58 rights.c queue-rights.c rights.h \
59 rtp.h \
60 selection.c selection.h \
61 sendmail.c sendmail.h \
62 signame.c signame.h \
63 sink.c sink.h \
64 speaker-protocol.c speaker-protocol.h \
65 split.c split.h \
66 syscalls.c syscalls.h \
67 types.h \
68 table.c table.h \
69 timeval.h \
70 trackdb.h trackdb.c trackdb-int.h \
71 trackname.c trackname.h \
72 url.h url.c \
73 user.h user.c \
74 unicode.h unicode.c \
75 unidata.h unidata.c \
76 vacopy.h \
77 vector.c vector.h \
78 version.c version.h \
79 wav.h wav.c \
80 wstat.c wstat.h \
81 disorder.h
82
83version-string: ../config.status ${top_srcdir}/scripts/make-version-string
84 CC="${CC}" ${top_srcdir}/scripts/make-version-string > $@.new
85 @if cmp $@.new $@; then \
86 echo rm -f $@.new; rm -f $@.new; else \
87 echo mv $@.new $@; mv $@.new $@; fi
88
89versionstring.h: version-string ${top_srcdir}/scripts/text2c
90 ${top_srcdir}/scripts/text2c -extern disorder_version_string \
91 version-string > $@.new
92 @if cmp $@.new $@; then \
93 echo rm -f $@.new; rm -f $@.new; else \
94 echo mv $@.new $@; mv $@.new $@; fi
95
96definitions.h: Makefile
97 rm -f $@.new
98 echo "#define PKGLIBDIR \"${pkglibdir}\"" > $@.new
99 echo "#define PKGCONFDIR \"${sysconfdir}/\"PACKAGE" >> $@.new
100 echo "#define PKGSTATEDIR \"${localstatedir}/\"PACKAGE" >> $@.new
101 echo "#define PKGDATADIR \"${pkgdatadir}/\"" >> $@.new
102 echo "#define SBINDIR \"${sbindir}/\"" >> $@.new
103 echo "#define BINDIR \"${bindir}/\"" >> $@.new
104 echo "#define FINKBINDIR \"${finkbindir}/\"" >> $@.new
105 @if cmp $@.new $@; then \
106 echo rm -f $@.new; rm -f $@.new; else \
107 echo mv $@.new $@; mv $@.new $@; fi
108defs.o: definitions.h versionstring.h
109defs.lo: definitions.h versionstring.h
110
111test_SOURCES=test.c memgc.c test.h t-addr.c t-basen.c t-cache.c \
112 t-casefold.c t-cookies.c t-filepart.c t-hash.c t-heap.c \
113 t-hex.c t-kvp.c t-mime.c t-printf.c t-regsub.c t-selection.c \
114 t-signame.c t-sink.c t-split.c t-unicode.c t-url.c t-utf8.c \
115 t-words.c t-wstat.c
116test_LDADD=libdisorder.a $(LIBPCRE) $(LIBICONV) $(LIBGC)
117test_DEPENDENCIES=libdisorder.a
118
119check: test #test.i
120 ./test
121
122check-report: before-check check make-coverage-reports
123before-check:
124 rm -f *.gcda *.gcov
125make-coverage-reports:
126 ${GCOV} *.c | ${PYTHON} ../scripts/format-gcov-report --html . *.c
127
128rebuild-unicode:
129 cd ${srcdir} && ${top_srcdir}/scripts/make-unidata
130
131%.i: %.c
132 $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) -c $< > $@.new
133 mv $@.new $@
134
135CLEANFILES=definitions.h definitions.h.new