1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

* adapted Makefiles to core restructuring

This commit is contained in:
Oliver Hahm 2013-03-23 18:42:11 +01:00
parent 1b2d192556
commit 0de960b038
5 changed files with 37 additions and 0 deletions

18
Makefile.base Normal file
View File

@ -0,0 +1,18 @@
ifeq ($(BOARD),msba2)
INCLUDES += -I$(RIOTBOARD)/msba2/include/
INCLUDES += -I$(RIOTBOARD)/msba2-common/include/
INCLUDES += -I$(RIOTBOARD)/msba2-common/drivers/include/
endif
ifeq ($(BOARD),msb-430)
INCLUDES += -I$(RIOTBOARD)/msb-430/include/
INCLUDES += -I$(RIOTBOARD)/msb-430-common/include/
INCLUDES += -I$(RIOTBOARD)/msb-430-common/drivers/include/
endif
ifeq ($(BOARD),msb-430h)
INCLUDES += -I$(RIOTBOARD)/msb-430h/include/
INCLUDES += -I$(RIOTBOARD)/msb-430-common/include/
INCLUDES += -I$(RIOTBOARD)/msb-430-common/drivers/include/
endif
ifeq ($(BOARD),native)
INCLUDES += -I$(RIOTBOARD)/native/include/
endif

6
msb-430h/Makefile.dep Normal file
View File

@ -0,0 +1,6 @@
ifneq (,$(findstring cc110x_ng,$(USEMODULE)))
ifeq (,$(findstring cc110x_spi,$(USEMODULE)))
USEMODULE += cc110x_spi
endif
endif

View File

@ -0,0 +1,3 @@
include $(RIOTBOARD)/$(BOARD)/Makefile.dep
include $(RIOTBOARD)/msb-430-common/Makefile.include

View File

@ -0,0 +1,8 @@
ifneq (,$(findstring cc110x_ng,$(USEMODULE)))
ifeq (,$(findstring cc110x_spi,$(USEMODULE)))
USEMODULE += cc110x_spi
endif
ifeq (,$(findstring gpioint,$(USEMODULE)))
USEMODULE += gpioint
endif
endif

View File

@ -20,3 +20,5 @@ ifeq ($(strip $(PORT)),)
endif
export HEXFILE = bin/$(PROJECT).hex
export FFLAGS = -d $(PORT) -j uif "prog $(HEXFILE)"
include $(RIOTBOARD)/msba2-common/Makefile.dep