make libswscale build system similar to the libav* one
[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 # NOTE: -I.. is needed to include config.h
11 CFLAGS=$(OPTFLAGS) -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavutil \
12        -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
13        -D_GNU_SOURCE
14
15 OBJS= swscale.o rgb2rgb.o yuv2rgb.o
16 ifeq ($(TARGET_ALTIVEC),yes)
17 OBJS+=  yuv2rgb_altivec.o
18 endif
19
20 HEADERS = swscale.h rgb2rgb.h
21
22 include $(SRC_PATH)/common.mak