1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/Makefile.modules
Ludwig Ortmann d58da976c6 make: add Makefile.pseudomodules and use it
BASELIBS now defines targets for anything in USEMODULE that is not in PSEUDOMODULES
move defaulttransceiver to Makefile.pseudomodules
2014-03-18 10:19:49 +01:00

17 lines
482 B
Makefile

export MAKEBASE =$(RIOTBASE)
UNDEF += $(BINDIR)startup.o
include $(RIOTBASE)/Makefile.pseudomodules
USEMODULE += cpu core sys
INCLUDES += -I$(RIOTBASE)/core/include -I$(RIOTBASE)/drivers/include -I$(RIOTBASE)/sys/include
ED = $(USEMODULE:%=-DMODULE_%)
ED += $(USEPKG:%=-DMODULE_%)
EXTDEFINES = $(shell echo $(ED)|tr 'a-z' 'A-Z')
REALMODULES = $(filter-out $(PSEUDOMODULES), $(USEMODULE))
export BASELIBS = $(REALMODULES:%= $(BINDIR)%.a)
CFLAGS += $(EXTDEFINES)
export USEMODULE