Allow to compile swscale's non-SIMD code under the LGPL license.
[ffmpeg.git] / libswscale / Makefile
index 82e9bfc025f2363059066fc29b799c311ed0ad9b..377ea80a7edb316e49b1de286eb7c1ae5d1dd7fb 100644 (file)
@@ -9,10 +9,15 @@ endif
 
 EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)
 
-OBJS= swscale.o rgb2rgb.o yuv2rgb.o
+OBJS= swscale.o rgb2rgb.o
 ifeq ($(TARGET_ALTIVEC),yes)
 OBJS+=  yuv2rgb_altivec.o
 endif
+ifeq ($(CONFIG_GPL),yes)
+OBJS+=  yuv2rgb.o
+else
+OBJS+=  yuv2rgb_init.o
+endif
 
 HEADERS = swscale.h rgb2rgb.h