2013-02-06 13:20:21 +01:00
|
|
|
export MAKEBASE =$(RIOTBASE)
|
|
|
|
export BINDIR =$(RIOTBASE)/bin/
|
|
|
|
UNDEF = $(BINDIR)startup.o
|
|
|
|
|
|
|
|
### Minimal setup
|
|
|
|
ifeq ($(CPU),lpc2387)
|
|
|
|
USEMODULE += arm_common
|
|
|
|
UNDEF += $(BINDIR)syscalls.o
|
2013-03-19 17:56:26 +01:00
|
|
|
export INCLUDES += -I$(RIOTBASE)/cpu/arm_common/include
|
2013-02-06 13:20:21 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CPU),lpc214x)
|
|
|
|
USEMODULE += arm_common
|
|
|
|
UNDEF += $(BINDIR)syscalls.o
|
|
|
|
endif
|
2013-03-19 22:32:22 +01:00
|
|
|
ifeq ($(CPU),native)
|
|
|
|
export INCLUDES += -I$(RIOTBASE)/cpu/native/include
|
|
|
|
endif
|
2013-03-23 18:38:12 +01:00
|
|
|
ifeq ($(CPU),stm32f407vgt6)
|
|
|
|
USEMODULE += stm32f4xxstdperi
|
|
|
|
UNDEF += $(BINDIR)syscalls.o
|
|
|
|
endif
|
|
|
|
|
2013-02-06 13:20:21 +01:00
|
|
|
#USEMODULE += cpu_drivers cpu core lib sys
|
|
|
|
USEMODULE += cpu core sys
|
2013-02-11 22:10:03 +01:00
|
|
|
ED = $(USEMODULE:%=-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)
|
|
|
|
# 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-02-06 13:20:21 +01:00
|
|
|
CFLAGS += $(EXTDEFINES)
|
|
|
|
|
2013-03-09 23:47:21 +01:00
|
|
|
include $(RIOTBASE)/Makefile.dep
|
2013-02-08 17:37:02 +01:00
|
|
|
|
2013-02-06 13:20:21 +01:00
|
|
|
export USEMODULE
|