2013-02-06 13:21:36 +01:00
|
|
|
####
|
|
|
|
#### Sample Makefile for building apps with the RIOT OS
|
|
|
|
####
|
|
|
|
#### The Sample Filesystem Layout is:
|
|
|
|
#### /this makefile
|
2013-03-09 23:47:21 +01:00
|
|
|
#### ../../RIOT
|
|
|
|
#### ../../boards for board definitions (if you have one or more)
|
2013-03-23 18:38:12 +01:00
|
|
|
####
|
2013-02-06 13:21:36 +01:00
|
|
|
|
2013-03-09 23:47:21 +01:00
|
|
|
# name of your project
|
|
|
|
export PROJECT =foobar
|
2013-02-06 13:21:36 +01:00
|
|
|
|
2013-03-09 23:47:21 +01:00
|
|
|
# for easy switching of boards
|
2013-04-18 02:21:22 +02:00
|
|
|
ifeq ($(strip $(BOARD)),)
|
|
|
|
export BOARD = msba2
|
|
|
|
endif
|
2013-02-08 17:37:02 +01:00
|
|
|
|
2013-03-09 23:47:21 +01:00
|
|
|
# this has to be the absolute path of the RIOT-base dir
|
|
|
|
export RIOTBASE =$(CURDIR)/../../RIOT
|
2013-03-23 18:38:12 +01:00
|
|
|
export RIOTCPU =$(CURDIR)/../../RIOT/cpu
|
2013-03-09 23:47:21 +01:00
|
|
|
export RIOTBOARD =$(CURDIR)/../../boards
|
2013-02-08 17:37:02 +01:00
|
|
|
|
|
|
|
## Modules to include.
|
2013-02-06 13:21:36 +01:00
|
|
|
|
|
|
|
#USEMODULE += shell
|
2013-03-19 17:56:26 +01:00
|
|
|
#USEMODULE += uart0
|
|
|
|
#USEMODULE += posix
|
2013-03-09 23:47:21 +01:00
|
|
|
#USEMODULE += vtimer
|
2013-02-06 13:21:36 +01:00
|
|
|
#USEMODULE += sht11
|
|
|
|
#USEMODULE += ltc4150
|
|
|
|
#USEMODULE += cc110x
|
|
|
|
#USEMODULE += fat
|
2013-02-08 17:37:02 +01:00
|
|
|
|
2013-03-23 18:38:12 +01:00
|
|
|
export INCLUDES = -I$(RIOTBOARD)/$(BOARD)/include -I$(RIOTBASE)/core/include -I$(RIOTCPU)/$(CPU)/include -I$(RIOTBASE)/sys/lib -I$(RIOTBASE)/sys/include/ -I$(RIOTBASE)/drivers/include/
|
2013-02-08 19:34:07 +01:00
|
|
|
|
2013-03-09 23:47:21 +01:00
|
|
|
include $(RIOTBASE)/Makefile.include
|