From 919cb8731e393eabdf9f3881b7a487bda8951580 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sat, 23 Dec 2006 00:22:15 +0000 Subject: [PATCH] Fix regression tests with out-of-tree builds. Originally committed as revision 7364 to svn://svn.ffmpeg.org/ffmpeg/trunk --- tests/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index a22dbb1e6e..9c65bc5ebf 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -6,6 +6,7 @@ include ../config.mak VPATH=$(SRC_PATH_BARE)/tests SRC_DIR=$(SRC_PATH)/tests +BUILD_DIR=$(BUILD_ROOT)/tests CFLAGS=-O2 -Wall -g REFFILE1=$(SRC_DIR)/ffmpeg.regression.ref @@ -40,11 +41,11 @@ endif vsynth1/00.pgm: videogen$(EXESUF) @mkdir -p vsynth1 - $< 'vsynth1/' + $(BUILD_DIR)/$< 'vsynth1/' vsynth2/00.pgm: rotozoom$(EXESUF) @mkdir -p vsynth2 - $< 'vsynth2/' $(SRC_DIR)/lena.pnm + $(BUILD_DIR)/$< 'vsynth2/' $(SRC_DIR)/lena.pnm videogen$(EXESUF): videogen.c $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $< @@ -55,7 +56,7 @@ rotozoom$(EXESUF): rotozoom.c # audio generation asynth1.sw: audiogen$(EXESUF) - $< $@ + $(BUILD_DIR)/$< $@ audiogen$(EXESUF): audiogen.c $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<