chiark / gitweb /
create users.db (but don't do anythin with it). tighter db permissions
[disorder] / lib / Makefile.am
CommitLineData
460b9539 1#
2# This file is part of DisOrder.
f486ea18 3# Copyright (C) 2004, 2005, 2006, 2007 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
23noinst_PROGRAMS=test
24
0b861e97 25libdisorder_a_SOURCES=charset.c charset.h \
460b9539 26 addr.c addr.h \
27 authhash.c authhash.h \
28 basen.c basen.h \
29 cache.c cache.h \
30 client.c client.h \
31 client-common.c client-common.h \
32 configuration.c configuration.h \
b12be54a 33 cookies.c cookies.h \
460b9539 34 defs.c defs.h \
35 eclient.c eclient.h \
36 event.c event.h \
37 eventlog.c eventlog.h \
38 filepart.c filepart.h \
39 hash.c hash.h \
22168975 40 heap.h \
460b9539 41 hex.c hex.h \
81b1bf12 42 ifreq.c ifreq.h \
460b9539 43 inputline.c inputline.h \
44 kvp.c kvp.h \
45 log.c log.h log-impl.h \
46 logfd.c logfd.h \
47 mem.c mem.h mem-impl.h \
48 mime.h mime.c \
49 mixer.c mixer.h \
50 plugin.c plugin.h \
51 printf.c printf.h \
52 asprintf.c fprintf.c snprintf.c \
53 queue.c queue.h \
54 regsub.c regsub.h \
e83d0967 55 rtp.h \
460b9539 56 selection.c selection.h \
57 signame.c signame.h \
58 sink.c sink.h \
ea410ba1 59 speaker-protocol.c speaker-protocol.h \
460b9539 60 split.c split.h \
61 syscalls.c syscalls.h \
62 types.h \
63 table.c table.h \
e83d0967 64 timeval.h \
460b9539 65 trackname.c trackname.h \
66 user.h user.c \
e5a5a138 67 unicode.h unicode.c \
61507e3c 68 unidata.h unidata.c \
460b9539 69 vacopy.h \
70 vector.c vector.h \
ce6c36be 71 wav.h wav.c \
460b9539 72 wstat.c wstat.h \
73 disorder.h
460b9539 74
a05e4467
RK
75version-string: ../config.status ${top_srcdir}/scripts/make-version-string
76 CC="${CC}" ${top_srcdir}/scripts/make-version-string > $@.new
77 @if cmp $@.new $@; then \
78 echo rm -f $@.new; rm -f $@.new; else \
79 echo mv $@.new $@; mv $@.new $@; fi
80
81version.h: version-string ${top_srcdir}/scripts/text2c
82 ${top_srcdir}/scripts/text2c -extern disorder_version_string \
83 version-string > $@.new
84 @if cmp $@.new $@; then \
85 echo rm -f $@.new; rm -f $@.new; else \
86 echo mv $@.new $@; mv $@.new $@; fi
87
460b9539 88definitions.h: Makefile
89 rm -f $@.new
90 echo "#define PKGLIBDIR \"${pkglibdir}\"" > $@.new
91 echo "#define PKGCONFDIR \"${sysconfdir}/\"PACKAGE" >> $@.new
92 echo "#define PKGSTATEDIR \"${localstatedir}/\"PACKAGE" >> $@.new
93 echo "#define PKGDATADIR \"${pkgdatadir}/\"" >> $@.new
e83d0967
RK
94 echo "#define SBINDIR \"${sbindir}/\"" >> $@.new
95 echo "#define BINDIR \"${bindir}/\"" >> $@.new
96 echo "#define FINKBINDIR \"${finkbindir}/\"" >> $@.new
f486ea18 97 echo "#define DOCDIR \"${docdir}/\"" >> $@.new
66ec39ed
RK
98 @if cmp $@.new $@; then \
99 echo rm -f $@.new; rm -f $@.new; else \
100 echo mv $@.new $@; mv $@.new $@; fi
a05e4467
RK
101defs.o: definitions.h version.h
102defs.lo: definitions.h version.h
460b9539 103
fe575537
RK
104test_SOURCES=test.c memgc.c
105test_LDADD=libdisorder.a $(LIBPCRE) $(LIBICONV) $(LIBGC)
0b861e97 106test_DEPENDENCIES=libdisorder.a
460b9539 107
033fd4e3 108check: test #test.i
460b9539 109 ./test
110
fbd54d8e
RK
111check-report: before-check check make-coverage-reports
112before-check:
113 rm -f *.gcda *.gcov
114make-coverage-reports:
3d853cec 115 ${GCOV} *.c | ${PYTHON} ../scripts/format-gcov-report --html . *.c
fbd54d8e 116
e5a5a138
RK
117rebuild-unicode:
118 cd ${srcdir} && ${top_srcdir}/scripts/make-unidata
119
033fd4e3
RK
120%.i: %.c
121 $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) -c $< > $@.new
122 mv $@.new $@
123
66ec39ed 124CLEANFILES=definitions.h definitions.h.new