generated from lf-lang/lf-riot-uc-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (25 loc) · 1.01 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# The name of the LF application inside "./src" to build/run/flash etc.
LF_MAIN ?= AccelerometerDisplay
# Enable reactor-uc features
# CFLAGS += -DNETWORK_CHANNEL_TCP_POSIX
# CFLAGS += -DNETWORK_CHANNEL_COAP_RIOT
# Make default debug output report only info and errors.
CFLAGS += -DLF_LOG_LEVEL_ALL=LF_LOG_LEVEL_ERR
# Execute the LF compiler if build target is "all"
ifeq ($(MAKECMDGOALS),all)
_ := $(shell $(REACTOR_UC_PATH)/lfc/bin/lfc-dev src/$(LF_MAIN).lf)
endif
# ---- RIOT specific configuration ----
# This has to be the absolute path to the RIOT base directory:
RIOTBASE = $(CURDIR)/RIOT
# If no BOARD is found in the environment, use this default:
BOARD ?= nucleo-f446re
# Comment this out to disable code in RIOT that does safety checking
# which is not needed in a production environment but helps in the
# development process:
DEVELHELP ?= 1
# Change this to 0 show compiler invocation lines by default:
QUIET ?= 1
EVENT_QUEUE_SIZE?=20
REACTION_QUEUE_SIZE?=20
include $(REACTOR_UC_PATH)/make/riot/riot-lfc.mk