From 49d8a0e9c6e32701c7eca91a1204237d3a334e38 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Mon, 17 Aug 2009 19:17:00 +0200 Subject: support building out-of-tree Handle O= Signed-off-by: Bernhard Reutner-Fischer --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 793ca7879..a1547ab28 100644 --- a/Makefile +++ b/Makefile @@ -6,9 +6,12 @@ # top_srcdir=./ -top_builddir=./ -#include $(top_builddir)Rules.mak -#all: libs -include Makefile.in +top_builddir=$(if $(O),$(O),.)/ +export top_builddir + +# We do not need built-in implicit rules +MAKEFLAGS += -r + +include $(top_srcdir)Makefile.in include $(top_srcdir)Makerules include $(top_srcdir)Makefile.help -- cgit v1.2.3