diff options
author | Juan Manuel Cruz <juan.m.cruz.alcaraz@intel.com> | 2016-04-27 10:15:14 -0500 |
---|---|---|
committer | Anas Nashif <nashif@linux.intel.com> | 2016-05-14 15:55:03 +0000 |
commit | 5516bcaa728f536cc8a0d58e53c97cf3345435a0 (patch) | |
tree | c82bfeffa2e1babf991524cb398ee67bf68d7bf7 /Makefile.inc | |
parent | 98f372ac16ebf01fbb982ace97925fa309469df6 (diff) |
build: Add MinGW dependencies in makefile
Jira: ZEP-177
Change-Id: I5c67b9ed6c279b2b59afd4cd0351df5f0d030533
Signed-off-by: Juan Manuel Cruz <juan.m.cruz.alcaraz@intel.com>
Diffstat (limited to 'Makefile.inc')
-rw-r--r-- | Makefile.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.inc b/Makefile.inc index 3a9bf8061..35c9e7dbd 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -6,7 +6,13 @@ DQUOTE = " ARCH ?= x86 +UNAME := $(shell uname) +ifeq (MINGW, $(findstring MINGW, $(UNAME))) +PROJECT_BASE ?= $(shell sh -c "pwd -W") +else PROJECT_BASE ?= $(CURDIR) +endif + O ?= $(PROJECT_BASE)/outdir # Turn O into an absolute path; we call the main Kbuild with $(MAKE) -C |