aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/XPLAINBridge/makefile
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2016-04-05 21:19:29 +1000
committerDean Camera <dean@fourwalledcubicle.com>2016-04-05 21:19:29 +1000
commit49148fef9b5d74e5db607c6e39ad1c08f62b9b58 (patch)
tree1acda324a1334c208f775b1c9e22e934ef7c64f5 /Projects/XPLAINBridge/makefile
parent9669a00c34dc7545b2ca538b5aa0fde745483824 (diff)
parent3126cbbf96a24afd447ece00248e5ece39dd088a (diff)
downloadlufa-49148fef9b5d74e5db607c6e39ad1c08f62b9b58.tar.gz
lufa-49148fef9b5d74e5db607c6e39ad1c08f62b9b58.tar.bz2
lufa-49148fef9b5d74e5db607c6e39ad1c08f62b9b58.zip
Replace the LUFA build system with DMBS.
Replace LUFA build system with its successor, DMBS, for easier maintenance.
Diffstat (limited to 'Projects/XPLAINBridge/makefile')
-rw-r--r--Projects/XPLAINBridge/makefile33
1 files changed, 19 insertions, 14 deletions
diff --git a/Projects/XPLAINBridge/makefile b/Projects/XPLAINBridge/makefile
index 8ff794ae4..b40b212ba 100644
--- a/Projects/XPLAINBridge/makefile
+++ b/Projects/XPLAINBridge/makefile
@@ -31,21 +31,26 @@ LD_FLAGS =
# Default target
all:
+OBJDIR := obj
+
# 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_PATH)/Build/lufa_build.mk
-include $(LUFA_PATH)/Build/lufa_cppcheck.mk
-include $(LUFA_PATH)/Build/lufa_doxygen.mk
-include $(LUFA_PATH)/Build/lufa_dfu.mk
-include $(LUFA_PATH)/Build/lufa_hid.mk
-include $(LUFA_PATH)/Build/lufa_avrdude.mk
-include $(LUFA_PATH)/Build/lufa_atprogram.mk
+override OBJDIR:=$(shell pwd)/$(OBJDIR)
+
+# Include LUFA-specific DMBS extension modules
+DMBS_LUFA_PATH ?= $(LUFA_PATH)/Build/LUFA
+include $(DMBS_LUFA_PATH)/lufa-sources.mk
+include $(DMBS_LUFA_PATH)/lufa-gcc.mk
+
+# Include common DMBS build system modules
+DMBS_PATH ?= $(LUFA_PATH)/Build/DMBS/DMBS
+include $(DMBS_PATH)/core.mk
+include $(DMBS_PATH)/cppcheck.mk
+include $(DMBS_PATH)/doxygen.mk
+include $(DMBS_PATH)/dfu.mk
+include $(DMBS_PATH)/gcc.mk
+include $(DMBS_PATH)/hid.mk
+include $(DMBS_PATH)/avrdude.mk
+include $(DMBS_PATH)/atprogram.mk