Makefile.am 2.3 KB
Newer Older
1
#  libxmms-flac - XMMS FLAC input plugin
Josh Coalson's avatar
Josh Coalson committed
2
#  Copyright (C) 2000,2001,2002,2003,2004,2005  Josh Coalson
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#
#  This program is free software; you can redistribute it and/or
#  modify it under the terms of the GNU General Public License
#  as published by the Free Software Foundation; either version 2
#  of the License, or (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

Josh Coalson's avatar
Josh Coalson committed
18 19 20 21
#
# GNU makefile
#

22
EXTRA_DIST = \
Josh Coalson's avatar
Josh Coalson committed
23
	Makefile.lite
24

25 26 27
noinst_HEADERS = \
	charset.h \
	configure.h \
28 29
	http.h \
	plugin.h \
30
	tag.h
31

32 33
AM_CFLAGS = @XMMS_CFLAGS@

34
INCLUDES = -I$(top_srcdir)/src
Josh Coalson's avatar
Josh Coalson committed
35 36 37
if FLaC__INSTALL_XMMS_PLUGIN_LOCALLY
xmmsinputplugindir = $(HOME)/.xmms/Plugins
else
38
xmmsinputplugindir = @XMMS_INPUT_PLUGIN_DIR@
Josh Coalson's avatar
Josh Coalson committed
39
endif
40

Josh Coalson's avatar
Josh Coalson committed
41 42 43 44
# Don't build a static library
LIBTOOL = $(top_builddir)/libtool-disable-static

xmmsinputplugin_LTLIBRARIES = libxmms-flac.la
45

46
plugin_sources = charset.c configure.c fileinfo.c http.c plugin.c tag.c
47

48
libxmms_flac_la_SOURCES = $(plugin_sources)
49

Josh Coalson's avatar
Josh Coalson committed
50 51 52 53 54 55 56 57
# work around the bug in libtool where its relinking fails with a different DESTDIR
# for libtool bug info see:
#   http://mail.gnu.org/pipermail/bug-libtool/2002-February/003018.html
#   http://mail.gnu.org/pipermail/libtool/2002-April/006244.html
#   http://mail.gnu.org/pipermail/libtool/2002-April/006250.html
# for fix info see:
#   http://lists.freshrpms.net/pipermail/rpm-list/2002-April/000746.html
# the workaround is the extra '-L$(top_builddir)/src/libFLAC/.libs'
Josh Coalson's avatar
Josh Coalson committed
58
libxmms_flac_la_LIBADD = \
59 60
	$(top_builddir)/src/plugin_common/libplugin_common.la \
	$(top_builddir)/src/share/grabbag/libgrabbag.la \
61 62
	$(top_builddir)/src/share/replaygain_analysis/libreplaygain_analysis.la \
	$(top_builddir)/src/share/replaygain_synthesis/libreplaygain_synthesis.la \
63
	$(top_builddir)/src/share/utf8/libutf8.la \
Josh Coalson's avatar
Josh Coalson committed
64 65
	$(top_builddir)/src/libFLAC/libFLAC.la \
	-L$(top_builddir)/src/libFLAC/.libs \
Josh Coalson's avatar
Josh Coalson committed
66 67
	@XMMS_LIBS@ \
	@LIBICONV@
Josh Coalson's avatar
Josh Coalson committed
68
libxmms_flac_la_LDFLAGS = -module -avoid-version