Simplify conditional compilation handling.
authorDiego Biurrun <diego@biurrun.de>
Thu, 25 Jan 2007 00:35:29 +0000 (00:35 +0000)
committerDiego Biurrun <diego@biurrun.de>
Thu, 25 Jan 2007 00:35:29 +0000 (00:35 +0000)
Originally committed as revision 22009 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

libswscale/Makefile

index c65a3a9..d9b67da 100644 (file)
@@ -10,12 +10,9 @@ endif
 EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)
 
 OBJS= swscale.o rgb2rgb.o
-ifeq ($(TARGET_ALTIVEC),yes)
-OBJS+=  yuv2rgb_altivec.o
-endif
-ifeq ($(CONFIG_GPL),yes)
-OBJS+=  yuv2rgb.o
-endif
+
+OBJS-$(TARGET_ALTIVEC)     +=  yuv2rgb_altivec.o
+OBJS-$(CONFIG_GPL)         +=  yuv2rgb.o
 
 HEADERS = swscale.h rgb2rgb.h