projects
/
pub
/
lufa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f29c46
)
Add check and error to the BUILD module if OBJDIR option is set but object filenames...
author
Dean Camera
<dean@fourwalledcubicle.com>
Tue, 10 Jul 2012 18:51:21 +0000
(18:51 +0000)
committer
Dean Camera
<dean@fourwalledcubicle.com>
Tue, 10 Jul 2012 18:51:21 +0000
(18:51 +0000)
LUFA/Build/lufa.build.in
patch
|
blob
|
blame
|
history
diff --git
a/LUFA/Build/lufa.build.in
b/LUFA/Build/lufa.build.in
index
9d527dd
..
db0a78f
100644
(file)
--- a/
LUFA/Build/lufa.build.in
+++ b/
LUFA/Build/lufa.build.in
@@
-148,6
+148,11
@@
ifneq ($(OBJDIR),.)
$(shell mkdir $(OBJDIR) 2> /dev/null)
VPATH += $(dir $(SRC))
OBJECT_FILES := $(addprefix $(patsubst %/,%,$(OBJDIR))/, $(notdir $(OBJECT_FILES)))
+
+ # Check if any object file (without path) appears more than once in the object file list
+ ifneq ($(words $(sort $(OBJECT_FILES))), $(words $(OBJECT_FILES)))
+ $(error Cannot build with OBJDIR parameter set - one or more object file name is not unique)
+ endif
endif
# Create a list of dependency files from the list of object files