2014-02-10 15:28:55 +01:00
|
|
|
# name of your application
|
2014-05-05 21:54:10 +02:00
|
|
|
APPLICATION = default
|
2014-01-06 10:10:47 +01:00
|
|
|
|
2014-01-13 11:12:14 +01:00
|
|
|
# If no BOARD is found in the environment, use this default:
|
2014-05-05 21:54:10 +02:00
|
|
|
BOARD ?= native
|
2014-01-13 11:05:52 +01:00
|
|
|
|
|
|
|
# This has to be the absolute path to the RIOT base directory:
|
2014-05-05 21:54:10 +02:00
|
|
|
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:
|
2014-05-05 21:54:10 +02:00
|
|
|
#RIOTCPU ?= $(CURDIR)/../../RIOT/thirdparty_cpu
|
|
|
|
#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
|
|
|
|
|
2014-02-08 19:42:54 +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-06 10:10:47 +01:00
|
|
|
|
2014-08-01 18:48:16 +02:00
|
|
|
# Comment this out to disable code in RIOT that does safety checking
|
2014-01-13 11:05:52 +01: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-01-13 11:05:52 +01:00
|
|
|
|
|
|
|
# Change this to 0 show compiler invocation lines by default:
|
2014-05-05 21:54:10 +02:00
|
|
|
QUIET ?= 1
|
2014-01-13 11:05:52 +01:00
|
|
|
|
2014-01-13 11:12:14 +01:00
|
|
|
# Modules to include:
|
2014-01-13 11:05:52 +01:00
|
|
|
|
2014-10-02 02:20:45 +02:00
|
|
|
USEMODULE += uart0
|
2014-01-06 10:10:47 +01:00
|
|
|
USEMODULE += shell
|
|
|
|
USEMODULE += shell_commands
|
|
|
|
USEMODULE += ps
|
|
|
|
USEMODULE += vtimer
|
2014-10-31 10:25:44 +01:00
|
|
|
USEMODULE += config
|
2014-02-03 15:58:18 +01:00
|
|
|
|
2014-10-31 10:25:44 +01:00
|
|
|
FEATURES_OPTIONAL += config
|
2014-11-20 18:26:48 +01:00
|
|
|
FEATURES_OPTIONAL += periph_rtc
|
2014-10-26 23:18:58 +01:00
|
|
|
|
2014-02-14 14:30:16 +01:00
|
|
|
ifneq (,$(filter msb-430,$(BOARD)))
|
2014-01-06 10:10:47 +01:00
|
|
|
USEMODULE += sht11
|
|
|
|
endif
|
2014-02-14 14:30:16 +01:00
|
|
|
ifneq (,$(filter msba2,$(BOARD)))
|
2014-01-06 10:10:47 +01:00
|
|
|
USEMODULE += sht11
|
|
|
|
USEMODULE += ltc4150
|
|
|
|
USEMODULE += mci
|
2014-01-20 11:08:42 +01:00
|
|
|
USEMODULE += random
|
2014-01-06 10:10:47 +01:00
|
|
|
endif
|
2014-11-05 19:53:30 +01:00
|
|
|
ifneq (,$(filter iot-lab_M3,$(BOARD)))
|
|
|
|
USEMODULE += isl29020
|
|
|
|
USEMODULE += lps331ap
|
|
|
|
USEMODULE += l3g4200d
|
2014-11-05 14:58:18 +01:00
|
|
|
USEMODULE += lsm303dlhc
|
2014-11-05 19:53:30 +01:00
|
|
|
endif
|
2014-08-25 13:45:22 +02:00
|
|
|
ifneq (,$(filter fox,$(BOARD)))
|
|
|
|
USEMODULE += lps331ap
|
|
|
|
USEMODULE += l3g4200d
|
|
|
|
USEMODULE += lsm303dlhc
|
|
|
|
endif
|
2014-01-06 10:10:47 +01:00
|
|
|
|
|
|
|
include $(RIOTBASE)/Makefile.include
|