summaryrefslogtreecommitdiff
path: root/tests/Makefile
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2006-11-08 00:02:15 +0000
committerMåns Rullgård <mans@mansr.com>2006-11-08 00:02:15 +0000
commit997baf014130b85828d918cb4054c17e57a8e1e5 (patch)
treea64707d3b0e8f9450ea0b68639730fd795310a87 /tests/Makefile
parent94b594c68ae36848605766c84771674ef7b21bc9 (diff)
allow spaces in source and build directory names
out of tree builds from a source dir with spaces is impossible due to how make handles vpath Originally committed as revision 6938 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile21
1 files changed, 11 insertions, 10 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 6f26bd6dca..c4c6925f85 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -4,30 +4,31 @@
#
include ../config.mak
-VPATH=$(SRC_PATH)/tests
+VPATH=$(SRC_PATH_BARE)/tests
+SRC_DIR=$(SRC_PATH)/tests
CFLAGS=-O2 -Wall -g
-REFFILE1=$(VPATH)/ffmpeg.regression.ref
-REFFILE2=$(VPATH)/rotozoom.regression.ref
+REFFILE1=$(SRC_DIR)/ffmpeg.regression.ref
+REFFILE2=$(SRC_DIR)/rotozoom.regression.ref
-SERVER_REFFILE=$(VPATH)/ffserver.regression.ref
+SERVER_REFFILE=$(SRC_DIR)/ffserver.regression.ref
-LIBAV_REFFILE=$(VPATH)/libav.regression.ref
+LIBAV_REFFILE=$(SRC_DIR)/libav.regression.ref
all fulltest test: codectest libavtest test-server
test-server: vsynth1/00.pgm asynth1.sw
- @$(VPATH)/server-regression.sh $(SERVER_REFFILE) $(VPATH)/test.conf
+ @$(SRC_DIR)/server-regression.sh $(SERVER_REFFILE) $(SRC_DIR)/test.conf
# fast regression tests for all codecs
codectest mpeg4 mpeg ac3 snow snowll: vsynth1/00.pgm vsynth2/00.pgm asynth1.sw tiny_psnr$(EXESUF)
- @$(VPATH)/regression.sh $@ $(REFFILE1) vsynth1
- @$(VPATH)/regression.sh $@ $(REFFILE2) vsynth2
+ @$(SRC_DIR)/regression.sh $@ $(REFFILE1) vsynth1
+ @$(SRC_DIR)/regression.sh $@ $(REFFILE2) vsynth2
# fast regression for libav formats
ifeq ($(CONFIG_GPL),yes)
libavtest: vsynth1/00.pgm asynth1.sw
- @$(VPATH)/regression.sh $@ $(LIBAV_REFFILE) vsynth1
+ @$(SRC_DIR)/regression.sh $@ $(LIBAV_REFFILE) vsynth1
else
libavtest:
@echo
@@ -43,7 +44,7 @@ vsynth1/00.pgm: videogen$(EXESUF)
vsynth2/00.pgm: rotozoom$(EXESUF)
@mkdir -p vsynth2
- ./rotozoom 'vsynth2/' $(VPATH)/lena.pnm
+ ./rotozoom 'vsynth2/' $(SRC_DIR)/lena.pnm
videogen$(EXESUF): videogen.c
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<