aboutsummaryrefslogtreecommitdiffhomepage
path: root/mp3lib/Makefile
diff options
context:
space:
mode:
authorGravatar nplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-19 15:21:50 +0000
committerGravatar nplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-19 15:21:50 +0000
commit18bead43d4f106f72bdbb72b215d2a1334aa0a98 (patch)
tree132feb95a9fb4bd4a67a58ed9bd85300e4d2a746 /mp3lib/Makefile
parente22ab316777b3213cf65e24637d821acfa4cc251 (diff)
fix mp3lib compilation on OSX
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21056 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp3lib/Makefile')
-rw-r--r--mp3lib/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/mp3lib/Makefile b/mp3lib/Makefile
index 2889e9c72f..b25fbdbf75 100644
--- a/mp3lib/Makefile
+++ b/mp3lib/Makefile
@@ -9,9 +9,17 @@ CFLAGS = -I.. $(OPTFLAGS)
SRCS = sr1.c
ifeq ($(TARGET_ARCH_X86_32),yes)
SRCS += decode_i586.c
+# Darwin can't compile tabinit_MMX.c. However, we need costab_mmx from
+# decode_mmx.c for dct64_sse.c.
+ifeq ($(TARGET_OS),Darwin)
+ifeq ($(TARGET_MMX),yes)
+SRCS += decode_MMX.c
+endif
+else
ifeq ($(TARGET_MMX),yes)
SRCS += decode_MMX.c dct64_MMX.c tabinit_MMX.c
endif
+endif
ifeq ($(TARGET_3DNOW),yes)
SRCS += dct36_3dnow.c dct64_3dnow.c
endif