6 SWSSRCS=swscale.c rgb2rgb.c yuv2rgb.c
8 SWSOBJS=$(SWSSRCS:.c=.o)
10 ifeq ($(TARGET_ALTIVEC),yes)
11 SWSOBJS += yuv2rgb_altivec.o
14 CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
15 # -I/usr/X11R6/include/
22 $(CC) -c $(CFLAGS) -I.. -o $@ $<
27 $(AR) r $(SWSLIB) $(SWSOBJS)
31 rm -f *.o *.a *~ *.so cs_test swscale-example
34 rm -f Makefile.bak *.o *.a *~ *.so .depend cs_test swscale-example
39 $(CC) -MM $(CFLAGS) $(SWSSRCS) 1>.depend
41 cs_test: cs_test.o $(SWSLIB)
42 $(CC) cs_test.o $(SWSLIB) ../cpudetect.o -DFOR_MENCODER ../mp_msg.c -o cs_test -W -Wall
44 swscale-example: swscale-example.o $(SWSLIB)
45 $(CC) swscale-example.o $(SWSLIB) ../libmpcodecs/img_format.o -lm -o swscale-example -W -Wall
47 # include dependency files if they exist
49 ifneq ($(wildcard .depend),)