mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
de29e4184c
Application developers use `$(USEMODULES)` in their Makefiles to have the relevant functionally automagically added to their apps. This even does basic dependency tracking by means of `Makefile.dep`. But an important thing is missing: the automatic adding of include paths. This is inconvenient, error prone, and will hinder the RIOT core developers in future to change folder structures.
53 lines
1.4 KiB
Makefile
53 lines
1.4 KiB
Makefile
# name of your application
|
|
export PROJECT = rpl_udp
|
|
|
|
# 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)/../..
|
|
|
|
# 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
|
|
|
|
# get rid of the mandatory RPL warning
|
|
CFLAGS += "-Wno-cpp"
|
|
|
|
# Modules to include:
|
|
|
|
USEMODULE += auto_init
|
|
USEMODULE += shell
|
|
USEMODULE += shell_commands
|
|
USEMODULE += posix
|
|
USEMODULE += ps
|
|
USEMODULE += vtimer
|
|
ifeq ($(strip $(BOARD)),native)
|
|
USEMODULE += nativenet
|
|
else ifeq ($(strip $(BOARD)),msba2)
|
|
USEMODULE += cc110x
|
|
else ifeq ($(strip $(BOARD)),iot-lab_M3)
|
|
USEMODULE += at86rf231
|
|
endif
|
|
USEMODULE += sixlowpan
|
|
USEMODULE += rpl
|
|
USEMODULE += destiny
|
|
|
|
include $(RIOTBASE)/Makefile.include
|