Permalink
Browse files

Add hack to the XPLAINBridge project to allow it to compile even if a…

…n 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
  • Loading branch information...
1 parent 978ed47 commit 41cb4f565551971a08757532b95b5e297d9a6e14 Dean committed Jul 26, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 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

0 comments on commit 41cb4f5

Please sign in to comment.