]> git.sesse.net Git - ffmpeg/blobdiff - libswscale/Makefile
New LGPLed YUV2RGB table generator for SwScaler
[ffmpeg] / libswscale / Makefile
index 377ea80a7edb316e49b1de286eb7c1ae5d1dd7fb..9ebe825266902b395577ba6238f6a014ea049845 100644 (file)
@@ -1,31 +1,24 @@
+include $(SUBDIR)../config.mak
 
-include ../config.mak
+NAME = swscale
+FFLIBS = avutil
 
-NAME=swscale
-ifeq ($(BUILD_SHARED),yes)
-LIBVERSION=$(SWSVERSION)
-LIBMAJOR=$(SWSMAJOR)
-endif
+HEADERS = swscale.h
 
-EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)
+OBJS = rgb2rgb.o swscale.o swscale_avoption.o yuv2rgb2.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
+OBJS-$(ARCH_BFIN)          +=  internal_bfin.o swscale_bfin.o yuv2rgb_bfin.o
+OBJS-$(CONFIG_MLIB)        +=  yuv2rgb_mlib.o
+OBJS-$(HAVE_ALTIVEC)       +=  yuv2rgb_altivec.o
+OBJS-$(HAVE_VIS)           +=  yuv2rgb_vis.o
 
-HEADERS = swscale.h rgb2rgb.h
+TESTS = cs_test swscale-example
 
-include ../common.mak
+CLEANFILES = cs_test swscale-example
 
-cs_test: cs_test.c $(LIB)
+include $(SUBDIR)../subdir.mak
 
-swscale-example: swscale-example.o $(LIB)
+$(SUBDIR)cs_test: $(SUBDIR)cs_test.o $(SUBDIR)$(LIBNAME)
 
-clean::
-       rm -f cs_test swscale-example
+$(SUBDIR)swscale-example: $(SUBDIR)swscale-example.o $(SUBDIR)$(LIBNAME)
+$(SUBDIR)swscale-example: EXTRALIBS += -lm