summaryrefslogtreecommitdiff
path: root/makefiles/Makefile.tools
diff options
context:
space:
mode:
Diffstat (limited to 'makefiles/Makefile.tools')
-rw-r--r--makefiles/Makefile.tools10
1 files changed, 8 insertions, 2 deletions
diff --git a/makefiles/Makefile.tools b/makefiles/Makefile.tools
index 7a5cc63..922e690 100644
--- a/makefiles/Makefile.tools
+++ b/makefiles/Makefile.tools
@@ -35,6 +35,12 @@ ifeq ($(BUILD),)
endif
###############################################################################
+# Determine path used to load us, so we can locate other makefiles
+###############################################################################
+
+NSBUILD := $(dir $(lastword $(MAKEFILE_LIST)))
+
+###############################################################################
# Host/target platform detection
###############################################################################
@@ -415,7 +421,7 @@ ifeq ($(toolchain),)
endif
# TODO: It would be nice to avoid this hard-coded path
-include build/makefiles/Makefile.$(toolchain)
+include $(NSBUILD)/Makefile.$(toolchain)
###############################################################################
# Default assembler/compiler/linker/archiver flags
@@ -468,4 +474,4 @@ endif
# Package config macros
################################################################################
-include build/makefiles/Makefile.pkgconfig
+include $(NSBUILD)/Makefile.pkgconfig