aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2012-06-10 19:39:40 +0000
committerDean Camera <dean@fourwalledcubicle.com>2012-06-10 19:39:40 +0000
commit9ab445518a01e9b10b5d3e1c99f45d81d874278b (patch)
tree5a165f8c29757a54577b0366f44b4978b17ec205 /Demos/Device
parentfe3a5c24623030306bca129a4653323f0bfb80bc (diff)
downloadlufa-9ab445518a01e9b10b5d3e1c99f45d81d874278b.tar.gz
lufa-9ab445518a01e9b10b5d3e1c99f45d81d874278b.tar.bz2
lufa-9ab445518a01e9b10b5d3e1c99f45d81d874278b.zip
Add OBJDIR optional build variable to the BULD build system module, to allow the user project to relocate the output object and dependency files to a different directory.
Diffstat (limited to 'Demos/Device')
-rw-r--r--Demos/Device/ClassDriver/makefile2
-rw-r--r--Demos/Device/Incomplete/TestAndMeasurement/makefile2
-rw-r--r--Demos/Device/LowLevel/makefile2
3 files changed, 5 insertions, 1 deletions
diff --git a/Demos/Device/ClassDriver/makefile b/Demos/Device/ClassDriver/makefile
index 99e7c24a1..0e1dfae05 100644
--- a/Demos/Device/ClassDriver/makefile
+++ b/Demos/Device/ClassDriver/makefile
@@ -23,7 +23,9 @@ ifeq ($(MAKELEVEL), 10)
endif
all:
+ifeq ($(OBJDIR),)
@$(foreach PROJECT, $(PROJECT_DIRECTORIES), $(MAKE) -s -C $(PROJECT) clean all;)
+endif
%:
@$(foreach PROJECT, $(PROJECT_DIRECTORIES), $(MAKE) -s -C $(PROJECT) $@;)
diff --git a/Demos/Device/Incomplete/TestAndMeasurement/makefile b/Demos/Device/Incomplete/TestAndMeasurement/makefile
index 149506231..cbd43194e 100644
--- a/Demos/Device/Incomplete/TestAndMeasurement/makefile
+++ b/Demos/Device/Incomplete/TestAndMeasurement/makefile
@@ -19,7 +19,7 @@ TARGET = TestAndMeasurement
SRC = $(TARGET).c Descriptors.c $(LUFA_SRC_USB) $(LUFA_SRC_USBCLASS)
LUFA_PATH = ../../../../LUFA/
CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/
-LD_FLAGS =
+LD_FLAGS =
# Default target
all:
diff --git a/Demos/Device/LowLevel/makefile b/Demos/Device/LowLevel/makefile
index 99e7c24a1..0e1dfae05 100644
--- a/Demos/Device/LowLevel/makefile
+++ b/Demos/Device/LowLevel/makefile
@@ -23,7 +23,9 @@ ifeq ($(MAKELEVEL), 10)
endif
all:
+ifeq ($(OBJDIR),)
@$(foreach PROJECT, $(PROJECT_DIRECTORIES), $(MAKE) -s -C $(PROJECT) clean all;)
+endif
%:
@$(foreach PROJECT, $(PROJECT_DIRECTORIES), $(MAKE) -s -C $(PROJECT) $@;)