aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2012-07-26 19:57:02 +0000
committerDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2012-07-26 19:57:02 +0000
commite85b12be3628e20f5b65e6d790faa6c9c6fb314f (patch)
tree6bdd9f30cf83c20e08bd94416e1aac104cdec67b
parent074d3d5803d3e654a7d7892f435ee493d2a35263 (diff)
Add hack to the XPLAINBridge project to allow it to compile even if an identical OBJDIR directory exists in the dependant AVRISP-MKII clone project folder.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2421 d5102386-fcda-11dd-9fdb-3debd5008f28
-rw-r--r--Projects/XPLAINBridge/makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Projects/XPLAINBridge/makefile b/Projects/XPLAINBridge/makefile
index f51ada5d..33ac357e 100644
--- a/Projects/XPLAINBridge/makefile
+++ b/Projects/XPLAINBridge/makefile
@@ -29,6 +29,14 @@ LD_FLAGS =
# Default target
all:
+# Since this project borrows files from the AVRISP-MKII project which may also have an
+# identical OBJDIR directory, we need to enforce the use of this project's object file
+# directory as the one where the build object files are to be stored by pre-pending the
+# absolute path of the current project to the OBJDIR variable.
+ifneq ($(OBJDIR),)
+ override OBJDIR:=$(shell pwd)/$(OBJDIR)
+endif
+
# Include LUFA build script makefiles
include $(LUFA_PATH)/Build/lufa_core.mk
include $(LUFA_PATH)/Build/lufa_sources.mk