5 ifeq ($(BUILD_SHARED),yes)
6 LIBVERSION=$(SWSVERSION)
10 # NOTE: -I.. is needed to include config.h
11 CFLAGS=-I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavutil $(OPTFLAGS) \
12 -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
15 OBJS= swscale.o rgb2rgb.o yuv2rgb.o
16 ifeq ($(TARGET_ALTIVEC),yes)
17 OBJS+= yuv2rgb_altivec.o
20 HEADERS = swscale.h rgb2rgb.h
22 include $(SRC_PATH)/common.mak
24 cs_test: cs_test.c $(LIB)
25 $(CC) $(CFLAGS) -o $@ $^ -L. -lswscale $(EXTRALIBS)
27 swscale-example: swscale-example.c $(LIB)
28 $(CC) $(CFLAGS) -o $@ $^ -L. -lswscale $(EXTRALIBS)
31 rm -f cs_test swscale-example