Generalize example target rule in common.mak so that it sets a -example$(EXESUF)
[ffmpeg.git] / libswscale / Makefile
1 include $(SUBDIR)../config.mak
2
3 NAME = swscale
4 FFLIBS = avutil
5
6 HEADERS = swscale.h
7
8 OBJS = rgb2rgb.o swscale.o swscale_avoption.o yuv2rgb.o
9
10 OBJS-$(ARCH_BFIN)          +=  bfin/internal_bfin.o     \
11                                bfin/swscale_bfin.o      \
12                                bfin/yuv2rgb_bfin.o
13 OBJS-$(CONFIG_MLIB)        +=  mlib/yuv2rgb_mlib.o
14 OBJS-$(HAVE_ALTIVEC)       +=  ppc/yuv2rgb_altivec.o
15 OBJS-$(HAVE_VIS)           +=  sparc/yuv2rgb_vis.o
16
17 MMX-OBJS-$(CONFIG_GPL)     +=  x86/yuv2rgb_mmx.o        \
18
19 OBJS-$(HAVE_MMX)           +=  $(MMX-OBJS-yes)
20
21 EXAMPLES  = swscale
22 TESTPROGS = colorspace
23
24 DIRS = bfin mlib ppc sparc x86
25
26 include $(SUBDIR)../subdir.mak
27
28 $(SUBDIR)colorspace-test: $(SUBDIR)colorspace-test.o $(SUBDIR)$(LIBNAME)
29
30 $(SUBDIR)swscale-example: $(SUBDIR)swscale-example.o $(SUBDIR)$(LIBNAME)
31 $(SUBDIR)swscale-example: EXTRALIBS += -lm