diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-06-30 00:01:14 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-06-30 00:02:09 +0200 |
commit | e1a54304be1ccbbff2fcd3ee955acfbceb71221f (patch) | |
tree | ba1c955659ab11f2fba0f20bed115d5b65f84fed | |
parent | 08b4a667ef0ed02980a74f3b2174de2040fe1061 (diff) | |
download | ffmpeg-e1a54304be1ccbbff2fcd3ee955acfbceb71221f.tar.gz |
Move SRC_PATH hack around to allow compilation from subdir again.
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | common.mak | 6 | ||||
-rwxr-xr-x | configure | 3 |
3 files changed, 4 insertions, 7 deletions
@@ -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 ddaf45c370..9525dd44b6 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) @@ -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 |