mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
5453523933
Put all lines related to CFLAGS handling together.
12 lines
510 B
Makefile
12 lines
510 B
Makefile
_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)
|