mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
ac21f3c54c
This is necessary if includes have to be filtered, such as in native to throw out RIOTs posix includes which interfere with system includes.
60 lines
1.6 KiB
Makefile
60 lines
1.6 KiB
Makefile
####
|
|
#### Sample Makefile for building applications with the RIOT OS
|
|
####
|
|
#### The example file system layout is:
|
|
#### ./application makefile
|
|
#### ../../RIOT
|
|
####
|
|
|
|
# Set the name of your application:
|
|
export PROJECT = foobar
|
|
|
|
# If no BOARD is found in the environment, use this default:
|
|
export BOARD ?= native
|
|
|
|
# This has to be the absolute path to the RIOT base directory:
|
|
export RIOTBASE ?= $(CURDIR)/../../RIOT
|
|
|
|
# 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
|
|
|
|
# Uncomment this to enable scheduler statistics for ps:
|
|
#CFLAGS += -DSCHEDSTATISTICS
|
|
|
|
# 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
|
|
|
|
# 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
|
|
|
|
# Change this to 0 show compiler invocation lines by default:
|
|
export QUIET ?= 1
|
|
|
|
# Modules to include:
|
|
|
|
#USEMODULE += shell
|
|
#USEMODULE += uart0
|
|
#USEMODULE += posix
|
|
#USEMODULE += vtimer
|
|
#USEMODULE += sht11
|
|
#USEMODULE += ltc4150
|
|
#USEMODULE += cc110x
|
|
#USEMODULE += fat
|
|
|
|
#export INCLUDES += -Iapplication_include
|
|
|
|
# Specify custom dependencies for your application here ...
|
|
# export PROJDEPS = proj_data.h
|
|
|
|
include $(RIOTBASE)/Makefile.include
|
|
|
|
# ... and define them here (after including Makefile.include,
|
|
# otherwise you modify the standard target):
|
|
#proj_data.h: script.py data.tar.gz
|
|
# ./script.py
|