ffmpeg/libswscale/Makefile
Luca Abeni 9bde778e73 Allow to compile swscale's non-SIMD code under the LGPL license.
Since mplayer always define CONFIG_GPL, this commit should not change
anything for mplayer.

Originally committed as revision 21699 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2006-12-20 13:09:29 +00:00

32 lines
518 B
Makefile

include ../config.mak
NAME=swscale
ifeq ($(BUILD_SHARED),yes)
LIBVERSION=$(SWSVERSION)
LIBMAJOR=$(SWSMAJOR)
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
else
OBJS+= yuv2rgb_init.o
endif
HEADERS = swscale.h rgb2rgb.h
include ../common.mak
cs_test: cs_test.c $(LIB)
swscale-example: swscale-example.o $(LIB)
clean::
rm -f cs_test swscale-example