2 # This file is part of DisOrder.
3 # Copyright (C) 2004, 2005, 2006, s007 Richard Kettlewell
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.
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.
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
21 noinst_LIBRARIES=libdisorder.a
22 include_HEADERS=disorder.h
25 libdisorder_a_SOURCES=charset.c charset.h \
27 authhash.c authhash.h \
31 client-common.c client-common.h \
32 configuration.c configuration.h \
36 eventlog.c eventlog.h \
37 filepart.c filepart.h \
43 inputline.c inputline.h \
45 log.c log.h log-impl.h \
47 mem.c mem.h mem-impl.h \
52 asprintf.c fprintf.c snprintf.c \
56 selection.c selection.h \
59 speaker-protocol.c speaker-protocol.h \
61 syscalls.c syscalls.h \
65 trackname.c trackname.h \
76 definitions.h: Makefile
78 echo "#define PKGLIBDIR \"${pkglibdir}\"" > $@.new
79 echo "#define PKGCONFDIR \"${sysconfdir}/\"PACKAGE" >> $@.new
80 echo "#define PKGSTATEDIR \"${localstatedir}/\"PACKAGE" >> $@.new
81 echo "#define PKGDATADIR \"${pkgdatadir}/\"" >> $@.new
82 echo "#define SBINDIR \"${sbindir}/\"" >> $@.new
83 echo "#define BINDIR \"${bindir}/\"" >> $@.new
84 echo "#define FINKBINDIR \"${finkbindir}/\"" >> $@.new
85 @if cmp $@.new $@; then \
86 echo rm -f $@.new; rm -f $@.new; else \
87 echo mv $@.new $@; mv $@.new $@; fi
89 defs.lo: definitions.h
92 test_LDADD=libdisorder.a $(LIBPCRE) $(LIBICONV)
93 test_DEPENDENCIES=libdisorder.a
99 $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) -c $< > $@.new
102 CLEANFILES=definitions.h definitions.h.new