Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 41cb4f565551971a08757532b95b5e297d9a6e14 1 parent 978ed47
authored

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. 8  Projects/XPLAINBridge/makefile
8  Projects/XPLAINBridge/makefile
@@ -29,6 +29,14 @@ LD_FLAGS     =
29 29
 # Default target
30 30
 all:
31 31
 
  32
+# Since this project borrows files from the AVRISP-MKII project which may also have an
  33
+# identical OBJDIR directory, we need to enforce the use of this project's object file
  34
+# directory as the one where the build object files are to be stored by pre-pending the
  35
+# absolute path of the current project to the OBJDIR variable.
  36
+ifneq ($(OBJDIR),)
  37
+  override OBJDIR:=$(shell pwd)/$(OBJDIR)
  38
+endif
  39
+
32 40
 # Include LUFA build script makefiles
33 41
 include $(LUFA_PATH)/Build/lufa_core.mk
34 42
 include $(LUFA_PATH)/Build/lufa_sources.mk

0 notes on commit 41cb4f5

Please sign in to comment.
Something went wrong with that request. Please try again.