1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/Makefile.modules
René Kijewski 4a9864ebc7 make / cortex m: replace hyphen in module name
When you compile for UDOO, you are greeted by a multitude of this
warnings:
```
<command-line>:0:14: warning: ISO C99 requires whitespace after the macro name [enabled by default]
```

The reason for that is the argument `-DMODULE_CORTEX-M3_COMMON`.

This PR fixes this problem by replacing hyphens with underscores for the
`-D…` argument.
2014-06-25 20:50:44 +02:00

15 lines
529 B
Makefile

include $(RIOTBASE)/Makefile.pseudomodules
include $(RIOTBASE)/Makefile.defaultmodules
USEMODULE += $(filter-out $(DISABLE_MODULE), $(DEFAULT_MODULE))
INCLUDES += -I$(RIOTBASE)/core/include -I$(RIOTBASE)/drivers/include -I$(RIOTBASE)/sys/include
ED = $(patsubst %,-DMODULE_%,$(subst -,_,$(USEMODULE) $(USEPKG)))
EXTDEFINES = $(shell echo $(sort $(ED))|tr 'a-z' 'A-Z')
REALMODULES = $(filter-out $(PSEUDOMODULES), $(sort $(USEMODULE)))
export BASELIBS += $(REALMODULES:%=$(BINDIR)%.a)
CFLAGS += $(EXTDEFINES)
export USEMODULE