2013-02-06 13:20:21 +01:00
|
|
|
export MAKEBASE =$(RIOTBASE)
|
2013-04-01 00:18:07 +02:00
|
|
|
UNDEF += $(BINDIR)startup.o
|
2013-02-06 13:20:21 +01:00
|
|
|
|
|
|
|
USEMODULE += cpu core sys
|
2014-01-03 20:07:52 +01:00
|
|
|
INCLUDES += -I$(RIOTBASE)/core/include -I$(RIOTBASE)/drivers/include -I$(RIOTBASE)/sys/include
|
2013-02-11 22:10:03 +01:00
|
|
|
ED = $(USEMODULE:%=-DMODULE_%)
|
2014-02-19 03:18:46 +01:00
|
|
|
ED += $(USEPKG:%=-DMODULE_%)
|
2013-02-06 13:20:21 +01:00
|
|
|
EXTDEFINES = $(shell echo $(ED)|tr 'a-z' 'A-Z')
|
2013-02-08 17:37:02 +01:00
|
|
|
BL=$(USEMODULE:%= $(BINDIR)%.a)
|
2013-05-16 17:12:22 +02:00
|
|
|
|
2013-02-08 17:37:02 +01:00
|
|
|
# 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//')
|
2013-05-16 17:12:22 +02:00
|
|
|
|
2013-02-06 13:20:21 +01:00
|
|
|
CFLAGS += $(EXTDEFINES)
|
|
|
|
|
|
|
|
export USEMODULE
|