2013-02-06 13:21:36 +01:00
|
|
|
####
|
2014-02-10 15:28:55 +01:00
|
|
|
#### Sample Makefile for building applications with the RIOT OS
|
2014-01-09 12:18:14 +01:00
|
|
|
####
|
|
|
|
#### The example file system layout is:
|
2014-10-22 20:00:26 +02:00
|
|
|
#### ./application Makefile
|
2014-01-09 12:18:14 +01:00
|
|
|
#### ../../RIOT
|
2013-02-06 13:21:36 +01:00
|
|
|
####
|
|
|
|
|
2014-02-10 15:28:55 +01:00
|
|
|
# Set the name of your application:
|
2014-10-22 20:00:26 +02:00
|
|
|
APPLICATION = 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-10-22 20:00:26 +02:00
|
|
|
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:
|
2014-10-22 20:00:26 +02:00
|
|
|
RIOTBASE ?= $(CURDIR)/../../RIOT
|
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:
|
2017-11-19 18:50:51 +01:00
|
|
|
#DEVELHELP = 1
|
2014-01-09 12:05:36 +01:00
|
|
|
|
2016-12-27 13:50:42 +01:00
|
|
|
# Change this to 0 to show compiler invocation lines by default:
|
2014-10-22 20:00:26 +02:00
|
|
|
QUIET ?= 1
|
2014-01-09 12:18:14 +01:00
|
|
|
|
2014-01-13 11:12:14 +01:00
|
|
|
# Modules to include:
|
2013-02-06 13:21:36 +01:00
|
|
|
|
|
|
|
#USEMODULE += shell
|
2018-11-09 15:04:45 +01:00
|
|
|
#USEMODULE += posix_headers
|
2016-03-11 15:20:31 +01:00
|
|
|
#USEMODULE += xtimer
|
2013-02-08 17:37:02 +01:00
|
|
|
|
2016-02-26 22:19:31 +01:00
|
|
|
# If your application is very simple and doesn't use modules that use
|
|
|
|
# messaging, it can be disabled to save some memory:
|
|
|
|
|
|
|
|
#DISABLE_MODULE += core_msg
|
|
|
|
|
2019-08-27 16:06:41 +02:00
|
|
|
#INCLUDES += -Iapplication_include
|
2013-02-08 19:34:07 +01:00
|
|
|
|
2014-02-10 15:28:55 +01:00
|
|
|
# Specify custom dependencies for your application here ...
|
2014-10-22 20:00:26 +02:00
|
|
|
# APPDEPS = app_data.h config.h
|
2014-01-15 20:37:09 +01:00
|
|
|
|
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
|