chiark / gitweb /
Merge playlist branch against trunk to date.
[disorder] / driver / Makefile.am
1 #
2 # This file is part of DisOrder
3 # Copyright (C) 2005, 2007, 2008 Richard Kettlewell
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 3 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,
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
15 # You should have received a copy of the GNU General Public License
16 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 #
18
19
20 aolib_LTLIBRARIES=libdisorder.la
21 aolibdir=${libdir}/ao/plugins-2
22 finkaolibdir=${finkdir}/lib/ao/plugins-2
23 usraolibdir=/usr/lib/ao/plugins-2
24 AM_CPPFLAGS=-I${top_srcdir}/lib
25
26 libdisorder_la_SOURCES=disorder.c
27 libdisorder_la_LDFLAGS=-module
28
29 install-data-hook:
30
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.
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.
36 link-ao-driver:
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