1plugindir=$(pkglibdir)/plugins
2INCLUDES = -I$(top_srcdir)/include
3
4AM_LDFLAGS = @GMERLIN_PLUGIN_LDFLAGS@ -avoid-version -module
5
6if HAVE_MUSICBRAINZ
7musicbrainz_sources = musicbrainz.c
8musicbrainz_libs = @MUSICBRAINZ_LIBS@
9musicbrainz_cflags = @MUSICBRAINZ_CFLAGS@
10else
11musicbrainz_sources =
12musicbrainz_libs =
13musicbrainz_cflags =
14endif
15
16
17if HAVE_LIBCDDB
18cddb_sources = cddb.c
19cddb_libs = @CDDB_LIBS@
20cddb_cflags = @CDDB_CFLAGS@
21else
22cddb_sources =
23cddb_libs =
24cddb_cflags =
25endif
26
27
28AM_CFLAGS = \
29$(cddb_cflags) \
30$(musicbrainz_cflags) \
31@CDIO_CFLAGS@ \
32@CDIO_CDDA_CFLAGS@ \
33@CDIO_PARANOIA_CFLAGS@ \
34-DLOCALE_DIR=\"$(localedir)\" \
35-DPLUGIN_DIR=\"$(plugindir)\" \
36-DDOC_DIR=\"$(docdir)\" \
37-DDATA_DIR=\"$(pkgdatadir)\"
38
39plugin_LTLIBRARIES = i_cdaudio.la
40
41i_cdaudio_la_SOURCES = \
42i_cdaudio.c \
43cdaudio.c \
44cdaudio_xml.c \
45sha1.c	\
46cdparanoia.c \
47cdtext.c \
48$(musicbrainz_sources) \
49$(cddb_sources)
50
51
52i_cdaudio_la_LIBADD = \
53@GMERLIN_DEP_LIBS@ \
54$(musicbrainz_libs) \
55$(cddb_libs) \
56@CDIO_LIBS@ \
57@CDIO_CDDA_LIBS@ \
58@CDIO_PARANOIA_LIBS@ \
59@MODULE_LIBADD@
60
61noinst_HEADERS = cdaudio.h sha1.h
62