chiark / gitweb /
minor tidying following last change
[disorder] / lib / Makefile.am
1
2 #
3 # This file is part of DisOrder.
4 # Copyright (C) 2004, 2005, 2006, s007 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
22 noinst_LIBRARIES=libdisorder.a
23 include_HEADERS=disorder.h
24 noinst_PROGRAMS=test
25
26 libdisorder_a_SOURCES=charset.c charset.h               \
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
69
70 definitions.h: Makefile
71         rm -f $@.new
72         echo "#define PKGLIBDIR \"${pkglibdir}\"" > $@.new
73         echo "#define PKGCONFDIR \"${sysconfdir}/\"PACKAGE" >> $@.new
74         echo "#define PKGSTATEDIR \"${localstatedir}/\"PACKAGE" >> $@.new
75         echo "#define PKGDATADIR \"${pkgdatadir}/\"" >> $@.new
76         mv $@.new $@
77 defs.o: definitions.h
78 defs.lo: definitions.h
79
80 test_SOURCES=test.c
81 test_LDADD=libdisorder.a $(LIBPCRE) $(LIBGC)
82 test_DEPENDENCIES=libdisorder.a
83
84 check: test
85         ./test
86
87 CLEANFILES=definitions.h