Add hack to the XPLAINBridge project to allow it to compile even if an identical...
authorDean Camera <dean@fourwalledcubicle.com>
Thu, 26 Jul 2012 19:57:02 +0000 (19:57 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Thu, 26 Jul 2012 19:57:02 +0000 (19:57 +0000)
Projects/XPLAINBridge/makefile

index f51ada5..33ac357 100644 (file)
@@ -29,6 +29,14 @@ LD_FLAGS     =
 # Default target
 all:
 
 # 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
 # Include LUFA build script makefiles
 include $(LUFA_PATH)/Build/lufa_core.mk
 include $(LUFA_PATH)/Build/lufa_sources.mk