3 # This file is part of DisOrder.
4 # Copyright (C) 2004, 2005, 2006 Richard Kettlewell
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.
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.
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
22 noinst_LIBRARIES=libdisorder.a
23 include_HEADERS=disorder.h
26 libdisorder_a_SOURCES=charset.c charset.h \
28 authhash.c authhash.h \
32 client-common.c client-common.h \
33 configuration.c configuration.h \
37 eventlog.c eventlog.h \
38 filepart.c filepart.h \
41 inputline.c inputline.h \
43 log.c log.h log-impl.h \
45 mem.c mem.h mem-impl.h \
50 asprintf.c fprintf.c snprintf.c \
53 selection.c selection.h \
58 syscalls.c syscalls.h \
61 trackname.c trackname.h \
66 words.c words.h casefold.h unicodegc.h \
69 #libdisorder_la_LIBADD=$(LIBGCRYPT) $(LIBGC) $(LIBICONV) $(LIBNSL) \
70 # $(LIBSOCKET) $(LIBDL) $(LIBPCRE)
71 #libdisorder_la_LDFLAGS=-release ${VERSION}
73 definitions.h: Makefile
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
81 defs.lo: definitions.h
84 test_LDADD=libdisorder.a $(LIBPCRE) $(LIBGC)
85 test_DEPENDENCIES=libdisorder.a
90 CLEANFILES=definitions.h