Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
b5c251a7
Unverified
Commit
b5c251a7
authored
Dec 31, 2017
by
Dean Camera
Committed by
GitHub
Dec 31, 2017
Browse files
Merge pull request #108 from NicoHood/include_guard
Added include guards for DMBS build modules (thanks to Nico Hood).
parents
2f00be53
29c8f21f
Changes
2
Hide whitespace changes
Inline
Side-by-side
LUFA/Build/LUFA/lufa-gcc.mk
View file @
b5c251a7
...
...
@@ -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
LUFA/Build/LUFA/lufa-sources.mk
View file @
b5c251a7
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment