2001-10-24 10:34:41 +03:00
|
|
|
|
|
|
|
include ../config.mak
|
|
|
|
|
2006-07-10 15:35:52 +03:00
|
|
|
NAME=swscale
|
|
|
|
ifeq ($(BUILD_SHARED),yes)
|
|
|
|
LIBVERSION=$(SWSVERSION)
|
|
|
|
LIBMAJOR=$(SWSMAJOR)
|
2006-08-16 23:09:47 +03:00
|
|
|
EXTRALIBS := -L../libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)
|
2006-07-10 15:35:52 +03:00
|
|
|
endif
|
2004-06-27 03:07:15 +03:00
|
|
|
|
2006-07-10 15:35:52 +03:00
|
|
|
# NOTE: -I.. is needed to include config.h
|
2006-08-17 20:19:56 +03:00
|
|
|
CFLAGS=-I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavutil $(OPTFLAGS) \
|
2006-07-10 15:35:52 +03:00
|
|
|
-DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
|
|
|
|
-D_GNU_SOURCE
|
2001-10-24 10:34:41 +03:00
|
|
|
|
2006-07-10 15:35:52 +03:00
|
|
|
OBJS= swscale.o rgb2rgb.o yuv2rgb.o
|
2004-06-27 03:07:15 +03:00
|
|
|
ifeq ($(TARGET_ALTIVEC),yes)
|
2006-07-10 15:35:52 +03:00
|
|
|
OBJS+= yuv2rgb_altivec.o
|
2004-06-27 03:07:15 +03:00
|
|
|
endif
|
|
|
|
|
2006-07-10 15:35:52 +03:00
|
|
|
HEADERS = swscale.h rgb2rgb.h
|
2004-06-27 03:07:15 +03:00
|
|
|
|
2006-07-10 15:35:52 +03:00
|
|
|
include $(SRC_PATH)/common.mak
|
2006-08-21 15:15:29 +03:00
|
|
|
|
|
|
|
cs_test: cs_test.c
|
|
|
|
$(CC) $(CFLAGS) -o $@ $^ -L. -lswscale -L$(SRC_PATH)/libavutil -lavutil -lm
|
|
|
|
|
|
|
|
swscale-example: swscale-example.c
|
|
|
|
$(CC) $(CFLAGS) -o $@ $^ -L. -lswscale -L$(SRC_PATH)/libavutil -lavutil -lm
|