Make example and test build and link correctly
[ffmpeg.git] / 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
14 OBJS-$(TARGET_ALTIVEC)     +=  yuv2rgb_altivec.o
15 OBJS-$(CONFIG_GPL)         +=  yuv2rgb.o
16
17 HEADERS = swscale.h rgb2rgb.h
18
19 include ../common.mak
20
21 cs_test: cs_test.o $(LIB)
22
23 swscale-example: swscale-example.o $(LIB) -lm
24
25 clean::
26         rm -f cs_test swscale-example