[FFmpeg-cvslog] Move SRC_PATH hack around to allow compilation from subdir again.
Reimar Döffinger
git at videolan.org
Thu Jun 30 00:02:17 CEST 2011
ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Thu Jun 30 00:01:14 2011 +0200| [e1a54304be1ccbbff2fcd3ee955acfbceb71221f] | committer: Reimar Döffinger
Move SRC_PATH hack around to allow compilation from subdir again.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e1a54304be1ccbbff2fcd3ee955acfbceb71221f
---
Makefile | 2 +-
common.mak | 6 ------
configure | 3 +++
3 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/Makefile b/Makefile
index cf6c596..dd3a1f6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,4 @@
+MAIN_MAKEFILE=1
include config.mak
vpath %.c $(SRC_PATH)
@@ -39,7 +40,6 @@ DATA_FILES := $(wildcard $(SRC_PATH)/ffpresets/*.ffpreset)
SKIPHEADERS = cmdutils_common_opts.h
-MAIN_MAKEFILE=1
include $(SRC_PATH)/common.mak
FF_LDFLAGS := $(FFLDFLAGS)
diff --git a/common.mak b/common.mak
index ddaf45c..9525dd4 100644
--- a/common.mak
+++ b/common.mak
@@ -7,12 +7,6 @@ all: all-yes
ifndef SUBDIR
-ifndef MAIN_MAKEFILE
-ifeq ($(SRC_PATH),.)
-SRC_PATH = ..
-endif
-endif
-
ifndef V
Q = @
ECHO = printf "$(1)\t%s\n" $(2)
diff --git a/configure b/configure
index 9ca6193..3092248 100755
--- a/configure
+++ b/configure
@@ -3297,6 +3297,9 @@ BINDIR=\$(DESTDIR)$bindir
DATADIR=\$(DESTDIR)$datadir
MANDIR=\$(DESTDIR)$mandir
SRC_PATH=$source_path
+ifndef MAIN_MAKEFILE
+SRC_PATH:=\$(SRC_PATH:.%=..%)
+endif
CC_IDENT=$cc_ident
ARCH=$arch
CC=$cc
More information about the ffmpeg-cvslog
mailing list