diff libmpeg2/Makefile @ 21309:ef59ac68c9b6

FFmpeg-style dependency declaration
author diego
date Mon, 27 Nov 2006 13:42:36 +0000
parents 92b122592776
children 5dc92a83d58a
line wrap: on
line diff
--- a/libmpeg2/Makefile	Mon Nov 27 13:38:13 2006 +0000
+++ b/libmpeg2/Makefile	Mon Nov 27 13:42:36 2006 +0000
@@ -12,22 +12,11 @@
 	  motion_comp.c \
 	  slice.c \
 
+SRCS-$(TARGET_MMX)        += idct_mmx.c motion_comp_mmx.c
+SRCS-$(TARGET_ALTIVEC)    += motion_comp_altivec.c idct_altivec.c
+SRCS-$(TARGET_VIS)        += motion_comp_vis.c
+SRCS-$(TARGET_ARCH_ALPHA) += idct_alpha.c motion_comp_alpha.c
+
 CFLAGS = -I../libvo -DMPG12PLAY
 
-ifeq ($(TARGET_MMX),yes)
-SRCS += idct_mmx.c motion_comp_mmx.c
-endif
-
-ifeq ($(TARGET_ALTIVEC),yes)
-SRCS += motion_comp_altivec.c idct_altivec.c
-endif
-
-ifeq ($(TARGET_VIS),yes)
-SRCS += motion_comp_vis.c
-endif
-
-ifeq ($(TARGET_ARCH_ALPHA),yes)
-SRCS += idct_alpha.c motion_comp_alpha.c
-endif
-
 include ../mpcommon.mak