]> git.sesse.net Git - ffmpeg/blob - libswscale/Makefile
Allow to compile swscale's non-SIMD code under the LGPL license.
[ffmpeg] / libswscale / Makefile
1
2 include ../config.mak
3
4 NAME=swscale
5 ifeq ($(BUILD_SHARED),yes)
6 LIBVERSION=$(SWSVERSION)
7 LIBMAJOR=$(SWSMAJOR)
8 endif
9
10 EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)
11
12 OBJS= swscale.o rgb2rgb.o
13 ifeq ($(TARGET_ALTIVEC),yes)
14 OBJS+=  yuv2rgb_altivec.o
15 endif
16 ifeq ($(CONFIG_GPL),yes)
17 OBJS+=  yuv2rgb.o
18 else
19 OBJS+=  yuv2rgb_init.o
20 endif
21
22 HEADERS = swscale.h rgb2rgb.h
23
24 include ../common.mak
25
26 cs_test: cs_test.c $(LIB)
27
28 swscale-example: swscale-example.o $(LIB)
29
30 clean::
31         rm -f cs_test swscale-example