Unverified Commit 29c8f21f authored by NicoHood's avatar NicoHood
Browse files

Added include guard for dmbs modules. Fix...

Added include guard for dmbs modules. Fix https://github.com/abcminiuser/dmbs/issues/28 already included.
parent bbdf6470
......@@ -6,6 +6,9 @@
# www.lufa-lib.org
#
# Include Guard
ifeq ($(filter LUFA_GCC, $(DMBS_BUILD_MODULES)),)
DMBS_BUILD_MODULES += LUFA_GCC
DMBS_BUILD_TARGETS +=
DMBS_BUILD_MANDATORY_VARS += LUFA_PATH ARCH F_USB
......@@ -41,3 +44,5 @@ LUFA_CXX_DEFINES = -DARCH=ARCH_$(ARCH) -DBOARD=BOARD_$(BOARD) -DF_USB=$(F_USB)U
# LUFA specific standard build options
C_FLAGS += $(LUFA_CXX_INCLUDES) $(LUFA_CXX_DEFINES) $(LUFA_CXX_FLAGS)
CPP_FLAGS += $(LUFA_CXX_INCLUDES) $(LUFA_CXX_DEFINES) $(LUFA_CXX_FLAGS)
endif
......@@ -6,6 +6,9 @@
# www.lufa-lib.org
#
# Include Guard
ifeq ($(filter LUFA_SOURCES, $(DMBS_BUILD_MODULES)),)
DMBS_BUILD_MODULES += LUFA_SOURCES
DMBS_BUILD_TARGETS +=
DMBS_BUILD_MANDATORY_VARS += LUFA_PATH ARCH
......@@ -93,3 +96,5 @@ LUFA_SRC_ALL_FILES := $(LUFA_SRC_USB) \
$(LUFA_SRC_SERIAL) \
$(LUFA_SRC_TWI) \
$(LUFA_SRC_PLATFORM)
endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment