summaryrefslogtreecommitdiff
path: root/src/libdts
diff options
context:
space:
mode:
Diffstat (limited to 'src/libdts')
-rw-r--r--src/libdts/Makefile.am22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/libdts/Makefile.am b/src/libdts/Makefile.am
index 52e3ff683..34980c82c 100644
--- a/src/libdts/Makefile.am
+++ b/src/libdts/Makefile.am
@@ -2,11 +2,27 @@ include $(top_srcdir)/misc/Makefile.common
libdir = $(XINE_PLUGINDIR)
-lib_LTLIBRARIES = xineplug_decode_dts.la
+if DTS
+dts_module = xineplug_decode_dts.la
+endif
-xineplug_decode_dts_la_SOURCES = bitstream.c downmix.c parse.c xine_decoder.c
-xineplug_decode_dts_la_LIBADD = $(XINE_LIB)
+lib_LTLIBRARIES = $(dts_module)
+
+if EXTERNAL_LIBDTS
+internal_sources =
+else
+internal_sources = bitstream.c downmix.c parse.c
+endif
+
+xineplug_decode_dts_la_SOURCES = xine_decoder.c $(internal_sources)
xineplug_decode_dts_la_LDFLAGS = -avoid-version -module $(XINE_PLUGIN_MIN_SYMS)
+if EXTERNAL_LIBDTS
+xineplug_decode_dts_la_LIBADD = $(XINE_LIB) $(LIBDTS_LIBS)
+xineplug_decode_dts_la_CFLAGS = $(LIBDTS_CFLAGS)
+else
+xineplug_decode_dts_la_LIBADD = $(XINE_LIB)
+endif
+
noinst_HEADERS = bitstream.h dts.h dts_internal.h tables.h tables_adpcm.h \
tables_fir.h tables_huffman.h tables_quantization.h tables_vq.h