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
|
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)),)
|
2013-11-07 22:29:36 +01:00
|
|
|
export BOARD = native
|
2013-04-18 02:21:22 +02:00
|
|
|
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-11-07 22:29:36 +01:00
|
|
|
|
|
|
|
# uncomment these lines if you want to use platform support from external
|
|
|
|
# repositories
|
|
|
|
#export RIOTCPU =$(CURDIR)/../../RIOT/thirdparty_cpu
|
|
|
|
#export RIOTBOARD =$(CURDIR)/../../RIOT/thirdparty_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
|