mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
makefiles/modules.inc.mk: group CFLAGS handling
Put all lines related to CFLAGS handling together.
This commit is contained in:
parent
c2b1995af7
commit
5453523933
@ -1,11 +1,11 @@
|
||||
_ALLMODULES = $(sort $(USEMODULE) $(USEPKG))
|
||||
|
||||
# Define MODULE_MODULE_NAME preprocessor macros for all modules.
|
||||
ED = $(addprefix MODULE_,$(_ALLMODULES))
|
||||
EXTDEFINES = $(addprefix -D,$(shell echo '$(ED)' | tr 'a-z-' 'A-Z_'))
|
||||
CFLAGS += $(EXTDEFINES)
|
||||
|
||||
# filter "pseudomodules" from "real modules", but not "no_pseudomodules"
|
||||
NO_PSEUDOMODULES := $(filter $(NO_PSEUDOMODULES), $(_ALLMODULES))
|
||||
REALMODULES = $(filter-out $(PSEUDOMODULES), $(_ALLMODULES)) $(NO_PSEUDOMODULES)
|
||||
BASELIBS += $(REALMODULES:%=$(BINDIR)/%.a)
|
||||
|
||||
CFLAGS += $(EXTDEFINES)
|
||||
|
Loading…
Reference in New Issue
Block a user