2014-06-25 03:19:39 +02:00
|
|
|
# name of your application
|
2014-05-05 21:54:10 +02:00
|
|
|
APPLICATION = riot_and_cpp
|
2014-06-25 03:19:39 +02:00
|
|
|
|
|
|
|
# If no BOARD is found in the environment, use this default:
|
2014-05-05 21:54:10 +02:00
|
|
|
BOARD ?= native
|
2014-06-25 03:19:39 +02:00
|
|
|
|
|
|
|
# This has to be the absolute path to the RIOT base directory:
|
2014-05-05 21:54:10 +02:00
|
|
|
RIOTBASE ?= $(CURDIR)/../..
|
2014-06-25 03:19:39 +02:00
|
|
|
|
|
|
|
# Uncomment these lines if you want to use platform support from external
|
|
|
|
# repositories:
|
2014-05-05 21:54:10 +02:00
|
|
|
#RIOTCPU ?= $(CURDIR)/../../../thirdparty_cpu
|
|
|
|
#RIOTBOARD ?= $(CURDIR)/../../../thirdparty_boards
|
2014-06-25 03:19:39 +02:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2014-08-01 18:48:16 +02:00
|
|
|
# Comment this out to disable code in RIOT that does safety checking
|
2014-06-25 03:19:39 +02:00
|
|
|
# which is not needed in a production environment but helps in the
|
|
|
|
# development process:
|
2014-08-01 18:48:16 +02:00
|
|
|
CFLAGS += -DDEVELHELP
|
2014-06-25 03:19:39 +02:00
|
|
|
|
|
|
|
# Change this to 0 show compiler invocation lines by default:
|
2014-05-05 21:54:10 +02:00
|
|
|
QUIET ?= 1
|
2014-06-25 03:19:39 +02:00
|
|
|
|
|
|
|
# Blacklist boards
|
2014-06-10 20:58:52 +02:00
|
|
|
BOARD_BLACKLIST := arduino-due avsextrem chronos mbed_lpc1768 msb-430h msba2 redbee-econotag \
|
|
|
|
telosb wsn430-v1_3b wsn430-v1_4 msb-430 pttu udoo qemu-i386 z1 stm32f0discovery \
|
2014-07-30 14:59:14 +02:00
|
|
|
stm32f3discovery stm32f4discovery pca10000 pca10005
|
2014-06-25 03:19:39 +02:00
|
|
|
# This example only works with native for now.
|
|
|
|
# msb430-based boards: msp430-g++ is not provided in mspgcc.
|
|
|
|
# (People who want use c++ can build c++ compiler from source, or get binaries from Energia http://energia.nu/)
|
|
|
|
# msba2: some changes should be applied to successfully compile c++. (_kill_r, _kill, __dso_handle)
|
2014-06-05 19:47:45 +02:00
|
|
|
# stm32f0discovery: g++ does not support some used flags (e.g. -mthumb...)
|
2014-07-21 19:42:12 +02:00
|
|
|
# stm32f3discovery: g++ does not support some used flags (e.g. -mthumb...)
|
2014-06-10 20:58:52 +02:00
|
|
|
# stm32f4discovery: g++ does not support some used flags (e.g. -mthumb...)
|
2014-07-30 14:59:14 +02:00
|
|
|
# pca10000: g++ does not support some used flags (e.g. -mthumb...)
|
|
|
|
# pca10005: g++ does not support some used flags (e.g. -mthumb...)
|
2014-06-25 03:19:39 +02:00
|
|
|
# others: untested.
|
|
|
|
|
|
|
|
# If you want to add some extra flags when compile c++ files, add these flags
|
|
|
|
# to CXXEXFLAGS variable
|
|
|
|
CXXEXFLAGS +=
|
|
|
|
|
|
|
|
include $(RIOTBASE)/Makefile.include
|