Browse Source

Fix regression tests with out-of-tree builds.

Originally committed as revision 7364 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diego Biurrun 18 years ago
parent
commit
919cb8731e
1 changed files with 4 additions and 3 deletions
  1. 4 3
      tests/Makefile

+ 4 - 3
tests/Makefile

@@ -6,6 +6,7 @@ include ../config.mak
 
 
 VPATH=$(SRC_PATH_BARE)/tests
 VPATH=$(SRC_PATH_BARE)/tests
 SRC_DIR=$(SRC_PATH)/tests
 SRC_DIR=$(SRC_PATH)/tests
+BUILD_DIR=$(BUILD_ROOT)/tests
 CFLAGS=-O2 -Wall -g
 CFLAGS=-O2 -Wall -g
 
 
 REFFILE1=$(SRC_DIR)/ffmpeg.regression.ref
 REFFILE1=$(SRC_DIR)/ffmpeg.regression.ref
@@ -40,11 +41,11 @@ endif
 
 
 vsynth1/00.pgm: videogen$(EXESUF)
 vsynth1/00.pgm: videogen$(EXESUF)
 	@mkdir -p vsynth1
 	@mkdir -p vsynth1
-	$< 'vsynth1/'
+	$(BUILD_DIR)/$< 'vsynth1/'
 
 
 vsynth2/00.pgm: rotozoom$(EXESUF)
 vsynth2/00.pgm: rotozoom$(EXESUF)
 	@mkdir -p vsynth2
 	@mkdir -p vsynth2
-	$< 'vsynth2/' $(SRC_DIR)/lena.pnm
+	$(BUILD_DIR)/$< 'vsynth2/' $(SRC_DIR)/lena.pnm
 
 
 videogen$(EXESUF): videogen.c
 videogen$(EXESUF): videogen.c
 	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
 	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
@@ -55,7 +56,7 @@ rotozoom$(EXESUF): rotozoom.c
 # audio generation
 # audio generation
 
 
 asynth1.sw: audiogen$(EXESUF)
 asynth1.sw: audiogen$(EXESUF)
-	$< $@
+	$(BUILD_DIR)/$< $@
 
 
 audiogen$(EXESUF): audiogen.c
 audiogen$(EXESUF): audiogen.c
 	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
 	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<