summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2006-12-23 00:22:15 +0000
committerDiego Biurrun <diego@biurrun.de>2006-12-23 00:22:15 +0000
commit919cb8731e393eabdf9f3881b7a487bda8951580 (patch)
tree5aab09bacec4c11323333722ccc7803c42e6a891 /tests
parent2e3bcd38d0ae8f4dba23788e411378e94d76a629 (diff)
Fix regression tests with out-of-tree builds.
Originally committed as revision 7364 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile7
1 files 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 $@ $<