chiark / gitweb /
Import from Arch revision:
[disorder] / lib / Makefile.am
CommitLineData
460b9539 1#
2# This file is part of DisOrder.
3# Copyright (C) 2004, 2005, 2006 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
21lib_LTLIBRARIES=libdisorder.la
22include_HEADERS=disorder.h
23noinst_PROGRAMS=test
24
25# This library is there to share code between the DisOrder applications,
26# not to provide an interface to anyone else. As such there are no
27# guarantees regarding its ABI.
28libdisorder_la_SOURCES=charset.c charset.h \
29 addr.c addr.h \
30 authhash.c authhash.h \
31 basen.c basen.h \
32 cache.c cache.h \
33 client.c client.h \
34 client-common.c client-common.h \
35 configuration.c configuration.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 hex.c hex.h \
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 \
55 selection.c selection.h \
56 signame.c signame.h \
57 sink.c sink.h \
58 speaker.c speaker.h \
59 split.c split.h \
60 syscalls.c syscalls.h \
61 types.h \
62 table.c table.h \
63 trackname.c trackname.h \
64 user.h user.c \
65 utf8.h utf8.c \
66 vacopy.h \
67 vector.c vector.h \
68 words.c words.h casefold.h unicodegc.h \
69 wstat.c wstat.h \
70 disorder.h
71libdisorder_la_LIBADD=$(LIBGCRYPT) $(LIBGC) $(LIBICONV) $(LIBNSL) \
72 $(LIBSOCKET) $(LIBDL) $(LIBPCRE)
73libdisorder_la_LDFLAGS=-release ${VERSION}
74
75definitions.h: Makefile
76 rm -f $@.new
77 echo "#define PKGLIBDIR \"${pkglibdir}\"" > $@.new
78 echo "#define PKGCONFDIR \"${sysconfdir}/\"PACKAGE" >> $@.new
79 echo "#define PKGSTATEDIR \"${localstatedir}/\"PACKAGE" >> $@.new
80 echo "#define PKGDATADIR \"${pkgdatadir}/\"" >> $@.new
81 mv $@.new $@
82defs.o: definitions.h
83defs.lo: definitions.h
84
85test_SOURCES=test.c
86test_LDADD=libdisorder.la $(LIBPCRE)
87test_DEPENDENCIES=libdisorder.la
88
89check: test
90 ./test
91
92CLEANFILES=definitions.h
93# arch-tag:a8730cb4f8b4517b6e37b1f717956d7c