chiark / gitweb /
Abolish shared libdisorder; now we use a static one.
[disorder] / lib / Makefile.am
CommitLineData
0b861e97 1
460b9539 2#
3# This file is part of DisOrder.
4# Copyright (C) 2004, 2005, 2006 Richard Kettlewell
5#
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2 of the License, or
9# (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful, but
12# WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14# General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software
18# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19# USA
20#
21
0b861e97 22noinst_LIBRARIES=libdisorder.a
460b9539 23include_HEADERS=disorder.h
24noinst_PROGRAMS=test
25
0b861e97 26libdisorder_a_SOURCES=charset.c charset.h \
460b9539 27 addr.c addr.h \
28 authhash.c authhash.h \
29 basen.c basen.h \
30 cache.c cache.h \
31 client.c client.h \
32 client-common.c client-common.h \
33 configuration.c configuration.h \
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 \
40 hex.c hex.h \
41 inputline.c inputline.h \
42 kvp.c kvp.h \
43 log.c log.h log-impl.h \
44 logfd.c logfd.h \
45 mem.c mem.h mem-impl.h \
46 mime.h mime.c \
47 mixer.c mixer.h \
48 plugin.c plugin.h \
49 printf.c printf.h \
50 asprintf.c fprintf.c snprintf.c \
51 queue.c queue.h \
52 regsub.c regsub.h \
53 selection.c selection.h \
54 signame.c signame.h \
55 sink.c sink.h \
56 speaker.c speaker.h \
57 split.c split.h \
58 syscalls.c syscalls.h \
59 types.h \
60 table.c table.h \
61 trackname.c trackname.h \
62 user.h user.c \
63 utf8.h utf8.c \
64 vacopy.h \
65 vector.c vector.h \
66 words.c words.h casefold.h unicodegc.h \
67 wstat.c wstat.h \
68 disorder.h
0b861e97 69#libdisorder_la_LIBADD=$(LIBGCRYPT) $(LIBGC) $(LIBICONV) $(LIBNSL) \
70# $(LIBSOCKET) $(LIBDL) $(LIBPCRE)
71#libdisorder_la_LDFLAGS=-release ${VERSION}
460b9539 72
73definitions.h: Makefile
74 rm -f $@.new
75 echo "#define PKGLIBDIR \"${pkglibdir}\"" > $@.new
76 echo "#define PKGCONFDIR \"${sysconfdir}/\"PACKAGE" >> $@.new
77 echo "#define PKGSTATEDIR \"${localstatedir}/\"PACKAGE" >> $@.new
78 echo "#define PKGDATADIR \"${pkgdatadir}/\"" >> $@.new
79 mv $@.new $@
80defs.o: definitions.h
81defs.lo: definitions.h
82
83test_SOURCES=test.c
0b861e97 84test_LDADD=libdisorder.a $(LIBPCRE) $(LIBGC)
85test_DEPENDENCIES=libdisorder.a
460b9539 86
87check: test
88 ./test
89
90CLEANFILES=definitions.h