]> git.sesse.net Git - ffmpeg/blobdiff - libswscale/Makefile
New LGPLed YUV2RGB table generator for SwScaler
[ffmpeg] / libswscale / Makefile
index 86b28d3decf3567a0d1b0eabe1233979c0a16cdf..9ebe825266902b395577ba6238f6a014ea049845 100644 (file)
@@ -1,28 +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
 
-CFLAGS=-I$(BUILD_ROOT) -I$(SRC_PATH) -I$(SRC_PATH)/libavutil $(OPTFLAGS) \
-       -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
-       -D_ISOC9X_SOURCE
+OBJS = rgb2rgb.o swscale.o swscale_avoption.o yuv2rgb2.o
 
-OBJS= swscale.o rgb2rgb.o yuv2rgb.o
-ifeq ($(TARGET_ALTIVEC),yes)
-OBJS+=  yuv2rgb_altivec.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 $(SRC_PATH)/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