FFmpeg uses -D_ISOC9X_SOURCE and not -D_GNU_SOURCE in CFLAGS.
[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=-I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavutil $(OPTFLAGS) \
12        -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
13        -D_ISOC9X_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
23
24 cs_test: cs_test.c
25         $(CC) $(CFLAGS) -o $@ $^ -L. -lswscale $(EXTRALIBS)
26
27 swscale-example: swscale-example.c
28         $(CC) $(CFLAGS) -o $@ $^ -L. -lswscale $(EXTRALIBS)
29
30 clean::
31         rm -f cs_test swscale-example