From 782e83e21b4c942137667c515a9c48b172dc06b9 Mon Sep 17 00:00:00 2001 From: Vitor Sessak Date: Fri, 15 Feb 2008 19:21:42 +0000 Subject: [PATCH] work into the ffmpeg build system Commited in SoC by Bobby Bingham on 2007-07-24 17:59:16 Originally committed as revision 11946 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavfilter/Makefile | 50 +++++++++++++++++++++++++++----------------- 1 file changed, 31 insertions(+), 19 deletions(-) diff --git a/libavfilter/Makefile b/libavfilter/Makefile index a94472c368..d3f1931806 100644 --- a/libavfilter/Makefile +++ b/libavfilter/Makefile @@ -1,24 +1,36 @@ -CC = gcc -CFLAGS = -g -I../libavcodec -I../libavutil -LIBS = ../libavcodec/libavcodec.a ../libavutil/libavutil.a -lm -lSDL +include ../config.mak -OBJECTS = avfilter.o \ - avfiltergraph.o \ - vsrc_dummy.o \ - vsrc_ppm.o \ - vo_sdl.o \ - vf_crop.o \ - vf_passthrough.o \ - vf_rgb2bgr.o \ - vf_slicify.o \ +CFLAGS+=-I$(SRC_PATH)/libavcodec -all: filter_test +OBJS = avfilter.o \ + avfiltergraph.o \ -clean: - rm -f filter_test $(OBJECTS) +# TODO: real conditional compilation +OBJS-yes = vsrc_dummy.o \ + vsrc_ppm.o \ + vo_sdl.o \ + vf_crop.o \ + vf_passthrough.o \ + vf_rgb2bgr.o \ + vf_slicify.o \ -filter_test: $(OBJECTS) filter_test.c - $(CC) $(CFLAGS) $^ -o $@ $(LIBS) +HEADERS = avfilter.h -$(OBJECTS): %.o: %.c - $(CC) $(CFLAGS) -c $< +EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) $(EXTRALIBS) + +NAME=avfilter +LIBVERSION=$(LAVFILTERVERSION) +LIBMAJOR=$(LAVFILTERMAJOR) + +include ../common.mak + +clean:: + rm -f \ + filter_test $(TESTS) + +tests: filter_test + +filter_test: filter_test.o $(LIB) + $(CC) $(CFLAGS) $< -o $@ $(LIB) -lm -lSDL + +.PHONY: tests