diff options
Diffstat (limited to 'src/libxineadec/Makefile.am')
-rw-r--r-- | src/libxineadec/Makefile.am | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/libxineadec/Makefile.am b/src/libxineadec/Makefile.am index b2ffcf078..8ed5a8860 100644 --- a/src/libxineadec/Makefile.am +++ b/src/libxineadec/Makefile.am @@ -14,12 +14,29 @@ if HAVE_SPEEX speex_module = xineplug_decode_speex.la endif +if MUSEPACK +musepack_module = xineplug_decode_mpc.la +endif + +if !EXTERNAL_MPCDEC +link_libmpcdec = $(top_builddir)/contrib/libmpcdec/libmpcdec.la +cflags_libmpcdec = -I$(top_srcdir)/contrib/libmpcdec + +$(top_builddir)/contrib/libmpcdec/libmpcdec.la: + $(MAKE) -C $(top_builddir)/contrib/libmpcdec + +else +link_libmpcdec = $(MPCDEC_LIBS) +cflags_libmpcdec = $(MPCDEC_CFLAGS) +endif + xineplug_LTLIBRARIES = \ xineplug_decode_gsm610.la \ xineplug_decode_nsf.la \ xineplug_decode_lpcm.la \ $(vorbis_module) \ - $(speex_module) + $(speex_module) \ + $(musepack_module) xineplug_decode_gsm610_la_SOURCES = gsm610.c xineplug_decode_gsm610_la_CFLAGS = $(VISIBILITY_FLAG) @@ -40,3 +57,8 @@ xineplug_decode_vorbis_la_CFLAGS = $(VISIBILITY_FLAG) $(VORBIS_CFLAGS) xineplug_decode_speex_la_SOURCES = xine_speex_decoder.c xineplug_decode_speex_la_LIBADD = $(XINE_LIB) $(SPEEX_LIBS) xineplug_decode_speex_la_CFLAGS = $(VISIBILITY_FLAGS) $(SPEEX_CFLAGS) + +xineplug_decode_mpc_la_SOURCES = xine_musepack_decoder.c +xineplug_decode_mpc_la_CFLAGS = $(VISIBILITY_FLAG) $(cflags_libmpcdec) +xineplug_decode_mpc_la_LIBADD = $(XINE_LIB) $(link_libmpcdec) +xineplug_decode_mpc_la_LDFLAGS = $(xineplug_ldflags) |