chiark / gitweb /
A new chapter with descriptions of the tabs
[disorder] / driver / Makefile.am
CommitLineData
460b9539 1#
2# This file is part of DisOrder
5aff007d 3# Copyright (C) 2005, 2007, 2008 Richard Kettlewell
460b9539 4#
e7eb3a27 5# This program is free software: you can redistribute it and/or modify
460b9539 6# it under the terms of the GNU General Public License as published by
e7eb3a27 7# the Free Software Foundation, either version 3 of the License, or
460b9539 8# (at your option) any later version.
9#
e7eb3a27
RK
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
460b9539 15# You should have received a copy of the GNU General Public License
e7eb3a27 16# along with this program. If not, see <http://www.gnu.org/licenses/>.
460b9539 17#
18
19
20aolib_LTLIBRARIES=libdisorder.la
21aolibdir=${libdir}/ao/plugins-2
f9592fe7
RK
22finkaolibdir=${finkdir}/lib/ao/plugins-2
23usraolibdir=/usr/lib/ao/plugins-2
460b9539 24AM_CPPFLAGS=-I${top_srcdir}/lib
25
26libdisorder_la_SOURCES=disorder.c
27libdisorder_la_LDFLAGS=-module
28
71b49a3c
RK
29install-data-hook:
30
f9592fe7
RK
31# Link ao driver into right location. If you have some other location then
32# you'll need to modify this or link it manually.
71b49a3c
RK
33#
34# We don't mess with this for now; since disorder-decode covers some common
35# cases, the libao driver is less useful than it was.
36link-ao-driver:
f9592fe7
RK
37 @if test -d ${DESTDIR}${finkaolibdir} \
38 && test ${finkaolibdir} != ${aolibdir}; then \
39 echo rm -f ${DESTDIR}${finkaolibdir}/libdisorder.*; \
40 rm -f ${DESTDIR}${finkaolibdir}/libdisorder.*; \
41 echo ln ${aolibdir}/libdisorder.* ${DESTDIR}${finkaolibdir}; \
42 ln ${DESTDIR}${aolibdir}/libdisorder.* ${DESTDIR}${finkaolibdir}; \
43 fi
44 @if test -d ${DESTDIR}${usraolibdir} \
45 && test ${usraolibdir} != ${aolibdir}; then \
46 echo rm -f ${DESTDIR}${usraolibdir}/libdisorder.*; \
47 rm -f ${DESTDIR}${usraolibdir}/libdisorder.*; \
48 echo ln ${DESTDIR}${aolibdir}/libdisorder.* ${DESTDIR}${usraolibdir}; \
49 ln ${DESTDIR}${aolibdir}/libdisorder.* ${DESTDIR}${usraolibdir}; \
50 fi