summaryrefslogtreecommitdiff
path: root/src/libmad
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmad')
-rw-r--r--src/libmad/Makefile.am57
1 files changed, 25 insertions, 32 deletions
diff --git a/src/libmad/Makefile.am b/src/libmad/Makefile.am
index 7e8b617f4..b1e1f29f5 100644
--- a/src/libmad/Makefile.am
+++ b/src/libmad/Makefile.am
@@ -1,19 +1,36 @@
include $(top_srcdir)/misc/Makefile.common
-AM_CFLAGS = $(DEFAULT_OCFLAGS) $(VISIBILITY_FLAG)
+AM_CFLAGS = $(DEFAULT_OCFLAGS) $(VISIBILITY_FLAG)
AM_CPPFLAGS = -DOPT_SPEED
-AM_LDFLAGS = $(xineplug_ldflags)
+AM_LDFLAGS = $(xineplug_ldflags)
EXTRA_DIST = imdct_l_arm.S
+noinst_HEADERS = \
+ D.dat \
+ imdct_s.dat \
+ qc_table.dat \
+ rq_table.dat \
+ sf_table.dat \
+ bit.h \
+ fixed.h \
+ frame.h \
+ global.h \
+ huffman.h \
+ layer12.h \
+ layer3.h \
+ stream.h \
+ synth.h \
+ timer.h \
+ version.h
+
if MAD
-mad_module = xineplug_decode_mad.la
+xineplug_LTLIBRARIES = xineplug_decode_mad.la
endif
-xineplug_LTLIBRARIES = $(mad_module)
-
if EXTERNAL_LIBMAD
internal_sources =
+external_libs = $(LIBMAD_LIBS)
else
internal_sources = \
bit.c \
@@ -26,33 +43,9 @@ internal_sources = \
synth.c \
timer.c \
version.c
+external_libs =
endif
-xineplug_decode_mad_la_SOURCES = \
- xine_mad_decoder.c \
- $(internal_sources)
-
-if EXTERNAL_LIBMAD
-xineplug_decode_mad_la_LIBADD = $(XINE_LIB) $(LIBMAD_LIBS)
-else
-xineplug_decode_mad_la_LIBADD = $(XINE_LIB)
-endif
+xineplug_decode_mad_la_SOURCES = xine_mad_decoder.c $(internal_sources)
+xineplug_decode_mad_la_LIBADD = $(XINE_LIB) $(external_libs)
xineplug_decode_mad_la_CFLAGS = $(AM_CFLAGS) $(LIBMAD_CFLAGS)
-
-noinst_HEADERS = \
- D.dat \
- imdct_s.dat \
- qc_table.dat \
- rq_table.dat \
- sf_table.dat \
- bit.h \
- fixed.h \
- frame.h \
- global.h \
- huffman.h \
- layer12.h \
- layer3.h \
- stream.h \
- synth.h \
- timer.h \
- version.h