Commit | Line | Data |
---|---|---|
460b9539 | 1 | # |
2 | # This file is part of DisOrder. | |
622cdeda | 3 | # Copyright (C) 2004, 2005, 2006, s007 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 | 21 | noinst_LIBRARIES=libdisorder.a |
460b9539 | 22 | include_HEADERS=disorder.h |
23 | noinst_PROGRAMS=test | |
24 | ||
0b861e97 | 25 | libdisorder_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 \ | |
33 | defs.c defs.h \ | |
34 | eclient.c eclient.h \ | |
35 | event.c event.h \ | |
36 | eventlog.c eventlog.h \ | |
37 | filepart.c filepart.h \ | |
38 | hash.c hash.h \ | |
39 | hex.c hex.h \ | |
40 | inputline.c inputline.h \ | |
41 | kvp.c kvp.h \ | |
42 | log.c log.h log-impl.h \ | |
43 | logfd.c logfd.h \ | |
44 | mem.c mem.h mem-impl.h \ | |
45 | mime.h mime.c \ | |
46 | mixer.c mixer.h \ | |
47 | plugin.c plugin.h \ | |
48 | printf.c printf.h \ | |
49 | asprintf.c fprintf.c snprintf.c \ | |
50 | queue.c queue.h \ | |
51 | regsub.c regsub.h \ | |
e83d0967 | 52 | rtp.h \ |
460b9539 | 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 \ | |
e83d0967 | 61 | timeval.h \ |
460b9539 | 62 | trackname.c trackname.h \ |
63 | user.h user.c \ | |
64 | utf8.h utf8.c \ | |
65 | vacopy.h \ | |
66 | vector.c vector.h \ | |
67 | words.c words.h casefold.h unicodegc.h \ | |
68 | wstat.c wstat.h \ | |
69 | disorder.h | |
460b9539 | 70 | |
71 | definitions.h: Makefile | |
72 | rm -f $@.new | |
73 | echo "#define PKGLIBDIR \"${pkglibdir}\"" > $@.new | |
74 | echo "#define PKGCONFDIR \"${sysconfdir}/\"PACKAGE" >> $@.new | |
75 | echo "#define PKGSTATEDIR \"${localstatedir}/\"PACKAGE" >> $@.new | |
76 | echo "#define PKGDATADIR \"${pkgdatadir}/\"" >> $@.new | |
e83d0967 RK |
77 | echo "#define SBINDIR \"${sbindir}/\"" >> $@.new |
78 | echo "#define BINDIR \"${bindir}/\"" >> $@.new | |
79 | echo "#define FINKBINDIR \"${finkbindir}/\"" >> $@.new | |
460b9539 | 80 | mv $@.new $@ |
81 | defs.o: definitions.h | |
82 | defs.lo: definitions.h | |
83 | ||
84 | test_SOURCES=test.c | |
320598d4 | 85 | test_LDADD=libdisorder.a $(LIBPCRE) $(LIBICONV) |
0b861e97 | 86 | test_DEPENDENCIES=libdisorder.a |
460b9539 | 87 | |
88 | check: test | |
89 | ./test | |
90 | ||
91 | CLEANFILES=definitions.h |