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
dev/timer
Ludwig Ortmann 9 years ago
parent 8ac4f3332d
commit d58da976c6

@ -1,17 +1,15 @@
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')
BL=$(USEMODULE:%= $(BINDIR)%.a)
# Exclude defaulttransceiver, it is only a pseudomodule that adds other
# modules depending on the current board.
export BASELIBS = $(shell echo $(BL)|sed \
-e 's/[^ ]*defaulttransceiver.a//')
REALMODULES = $(filter-out $(PSEUDOMODULES), $(USEMODULE))
export BASELIBS = $(REALMODULES:%= $(BINDIR)%.a)
CFLAGS += $(EXTDEFINES)

@ -0,0 +1 @@
PSEUDOMODULES += defaulttransceiver
Loading…
Cancel
Save