make some global var static (fix a build failure with shared lib on x86_64)
[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 EXTRALIBS := -L../libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)
9 endif
10
11 # NOTE: -I.. is needed to include config.h
12 CFLAGS=-I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavutil $(OPTFLAGS) \
13        -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
14        -D_GNU_SOURCE
15
16 OBJS= swscale.o rgb2rgb.o yuv2rgb.o
17 ifeq ($(TARGET_ALTIVEC),yes)
18 OBJS+=  yuv2rgb_altivec.o
19 endif
20
21 HEADERS = swscale.h rgb2rgb.h
22
23 include $(SRC_PATH)/common.mak
24
25 cs_test: cs_test.c
26         $(CC) $(CFLAGS) -o $@ $^ -L. -lswscale -L$(SRC_PATH)/libavutil -lavutil -lm
27
28 swscale-example: swscale-example.c
29         $(CC) $(CFLAGS) -o $@ $^ -L. -lswscale -L$(SRC_PATH)/libavutil -lavutil -lm