changeset 20306:565df9b68536

Simplify OBJS handling.
author diego
date Thu, 19 Oct 2006 21:29:17 +0000
parents 1748a6649549
children eac578fa4e75
files mp3lib/Makefile
diffstat 1 files changed, 4 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/mp3lib/Makefile	Thu Oct 19 21:18:51 2006 +0000
+++ b/mp3lib/Makefile	Thu Oct 19 21:29:17 2006 +0000
@@ -1,37 +1,30 @@
 
 include ../config.mak
 
-SRCS = sr1.c
-OBJS = sr1.o
-# OBJS = $(SRCS:.c,.s=.o)
 ifeq ($(TARGET_ARCH_SGI_MIPS),yes)
 OPTFLAGS := $(OPTFLAGS:-O4=-O0)
 endif
 CFLAGS  = -I.. $(OPTFLAGS)
+
+SRCS = sr1.c
 ifeq ($(TARGET_ARCH_X86),yes)
 SRCS += decode_i586.c
-OBJS += decode_i586.o
 ifeq ($(TARGET_MMX),yes)
 SRCS += decode_MMX.c dct64_MMX.c tabinit_MMX.c
-OBJS += decode_MMX.o dct64_MMX.o tabinit_MMX.o
 endif
 ifeq ($(TARGET_3DNOW),yes)
 SRCS += dct36_3dnow.c dct64_3dnow.c
-OBJS += dct36_3dnow.o dct64_3dnow.o
 endif
 ifeq ($(TARGET_3DNOWEX),yes)
 SRCS += dct36_k7.c dct64_k7.c
-OBJS += dct36_k7.o dct64_k7.o
 endif
 ifeq ($(TARGET_SSE),yes)
 SRCS += dct64_sse.c
-OBJS += dct64_sse.o
 endif
 endif
 ifeq ($(TARGET_ARCH_POWERPC),yes)
 ifeq ($(TARGET_ALTIVEC),yes)
 SRCS += dct64_altivec.c
-OBJS += dct64_altivec.o
 ifeq ($(TARGET_OS),Darwin)
 CFLAGS += -faltivec
 else
@@ -40,6 +33,8 @@
 endif
 endif
 
+OBJS=$(SRCS:.c=.o)
+
 .SUFFIXES: .c .o
 
 # .PHONY: all clean