export MAKEBASE =$(RIOTBASE) export BINDIR =$(RIOTBASE)/bin/ UNDEF += $(BINDIR)startup.o USEMODULE += cpu core sys ED = $(USEMODULE:%=-DMODULE_%) EXTDEFINES = $(shell echo $(ED)|tr 'a-z' 'A-Z') BL=$(USEMODULE:%= $(BINDIR)%.a) # exclude hwtimer, because it is part of the kernel but the define is needed for auto_init export BASELIBS = $(shell echo $(BL)|sed 's/[^ ]*hwtimer.a//') CFLAGS += $(EXTDEFINES) include $(RIOTBASE)/Makefile.dep export USEMODULE export INCLUDES += -I$(RIOTBASE)/core/include