2014-01-06 10:10:47 +01:00
|
|
|
# name of your project
|
|
|
|
export PROJECT = default
|
|
|
|
|
2014-01-13 11:12:14 +01:00
|
|
|
# If no BOARD is found in the environment, use this default:
|
2014-01-13 11:05:52 +01:00
|
|
|
export BOARD ?= native
|
|
|
|
|
|
|
|
# This has to be the absolute path to the RIOT base directory:
|
2014-01-15 17:26:10 +01:00
|
|
|
export RIOTBASE ?= $(CURDIR)/../..
|
2014-01-06 10:10:47 +01:00
|
|
|
|
2014-01-13 11:05:52 +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
|
2014-01-06 10:10:47 +01:00
|
|
|
|
2014-01-13 11:05:52 +01:00
|
|
|
# Uncomment this to enable scheduler statistics for ps:
|
2014-01-06 10:10:47 +01:00
|
|
|
#CFLAGS += -DSCHEDSTATISTICS
|
|
|
|
|
|
|
|
# If you want to use valgrind, you should recompile native with either
|
|
|
|
# HAVE_VALGRIND_H or HAVE_VALGRIND_VALGRIND_H depending on the location
|
|
|
|
# of the valgrind header (i.e. <valgrind.h> or <valgrind/valgrind.h>)
|
|
|
|
# For more information about the valgrind support of RIOT read:
|
|
|
|
# RIOT/cpu/native/README
|
|
|
|
#CFLAGS += -DHAVE_VALGRIND_VALGRIND_H
|
|
|
|
#CFLAGS += -DHAVE_VALGRIND_H
|
|
|
|
|
2014-01-13 11:05:52 +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
|
|
|
|
|
|
|
|
# Change this to 0 show compiler invocation lines by default:
|
|
|
|
export QUIET ?= 1
|
|
|
|
|
2014-01-13 11:12:14 +01:00
|
|
|
# Modules to include:
|
2014-01-13 11:05:52 +01:00
|
|
|
|
2014-01-06 10:10:47 +01:00
|
|
|
USEMODULE += posix
|
|
|
|
USEMODULE += uart0
|
|
|
|
USEMODULE += shell
|
|
|
|
USEMODULE += shell_commands
|
|
|
|
USEMODULE += ps
|
|
|
|
USEMODULE += vtimer
|
|
|
|
USEMODULE += auto_init
|
|
|
|
ifneq (,$(findstring msb-430,$(BOARD)))
|
|
|
|
USEMODULE += sht11
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring chronos,$(BOARD)))
|
|
|
|
USEMODULE += cc110x_ng
|
|
|
|
export INCLUDES += -I$(RIOTBASE)/drivers/cc110x_ng/include
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring wsn430-v1_3b,$(BOARD)))
|
|
|
|
USEMODULE += cc110x_ng
|
|
|
|
export INCLUDES += -I$(RIOTBASE)/drivers/cc110x_ng/include
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring wsn430-v1_4,$(BOARD)))
|
|
|
|
USEMODULE += cc2420
|
|
|
|
export INCLUDES += -I$(RIOTBASE)/drivers/cc2420/include
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring msb-430h,$(BOARD)))
|
|
|
|
USEMODULE += cc110x_ng
|
|
|
|
export INCLUDES += -I$(RIOTBASE)/drivers/cc110x_ng/include
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring msba2,$(BOARD)))
|
|
|
|
USEMODULE += sht11
|
|
|
|
USEMODULE += ltc4150
|
|
|
|
USEMODULE += rtc
|
|
|
|
USEMODULE += mci
|
|
|
|
USEMODULE += cc110x_ng
|
|
|
|
USEMODULE += config
|
|
|
|
export INCLUDES += -I$(RIOTBASE)/drivers/cc110x_ng/include
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring native,$(BOARD)))
|
|
|
|
USEMODULE += ltc4150
|
|
|
|
USEMODULE += rtc
|
|
|
|
USEMODULE += nativenet
|
|
|
|
USEMODULE += transceiver
|
|
|
|
USEMODULE += config
|
|
|
|
endif
|
|
|
|
|
|
|
|
export INCLUDES += -I${RIOTBASE}/core/include/ -I${RIOTBASE}/sys/include/ -I${RIOTBASE}/drivers/include/
|
|
|
|
|
|
|
|
include $(RIOTBASE)/Makefile.include
|