summaryrefslogtreecommitdiffstats
path: root/mp3lib/Makefile
diff options
context:
space:
mode:
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