2013-02-06 13:21:36 +01:00
|
|
|
####
|
2014-01-09 12:18:14 +01:00
|
|
|
#### Sample Makefile for building projects with the RIOT OS
|
|
|
|
####
|
|
|
|
#### The example file system layout is:
|
|
|
|
#### ./project makefile
|
|
|
|
#### ../../RIOT
|
2013-02-06 13:21:36 +01:00
|
|
|
####
|
|
|
|
|
2014-01-09 12:18:14 +01:00
|
|
|
# Set the name of your project:
|
2014-01-08 16:46:46 +01:00
|
|
|
export PROJECT = foobar
|
2013-02-06 13:21:36 +01:00
|
|
|
|
2014-01-13 11:12:14 +01:00
|
|
|
# If no BOARD is found in the environment, use this default:
|
2014-01-08 16:46:46 +01:00
|
|
|
export BOARD ?= native
|
2013-02-08 17:37:02 +01:00
|
|
|
|
2014-01-09 12:18:14 +01:00
|
|
|
# This has to be the absolute path to the RIOT base directory:
|
|
|
|
export RIOTBASE ?= $(CURDIR)/../../RIOT
|
2013-11-07 22:29:36 +01:00
|
|
|
|
2014-01-09 12:18:14 +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
|
|
|
|
2014-01-09 12:18:14 +01:00
|
|
|
# Uncomment this to enable scheduler statistics for ps:
|
2014-01-09 12:05:36 +01:00
|
|
|
#CFLAGS += -DSCHEDSTATISTICS
|
|
|
|
|
2014-02-08 19:41:50 +01:00
|
|
|
# If you want to use native with valgrind, you should recompile native
|
|
|
|
# with the target all-valgrind instead of all:
|
|
|
|
# make -B clean all-valgrind
|
2014-01-09 12:05:36 +01:00
|
|
|
|
|
|
|
# Uncomment this to enable code in RIOT that does safety checking
|
|
|
|
# which is not needed in a production environment but helps in the
|
|
|
|
# development process:
|
|
|
|
#CFLAGS += -DDEVELHELP
|
|
|
|
|
2014-01-09 12:18:14 +01:00
|
|
|
# Change this to 0 show compiler invocation lines by default:
|
|
|
|
export QUIET ?= 1
|
|
|
|
|
2014-01-13 11:12:14 +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
|
|
|
|
2014-01-21 15:28:00 +01:00
|
|
|
#export INCLUDES += -Iproject_include
|
2013-02-08 19:34:07 +01:00
|
|
|
|
2014-01-15 20:37:09 +01:00
|
|
|
# Specify custom dependencies for your project here ...
|
|
|
|
# export PROJDEPS = proj_data.h
|
|
|
|
|
2013-03-09 23:47:21 +01:00
|
|
|
include $(RIOTBASE)/Makefile.include
|
2014-01-15 20:37:09 +01:00
|
|
|
|
|
|
|
# ... and define them here (after including Makefile.include,
|
|
|
|
# otherwise you modify the standard target):
|
|
|
|
#proj_data.h: script.py data.tar.gz
|
|
|
|
# ./script.py
|