• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright JS Foundation and other contributors, http://js.foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# application name
16APPLICATION = riot_jerry
17
18# default BOARD enviroment
19BOARD ?= stm32f4discovery
20
21# LLVM/Clang-based toolchain
22TOOLCHAIN ?= llvm
23
24# path to the RIOT base directory
25RIOTBASE ?= $(CURDIR)/../RIOT
26# path to the JERRYSCRIPT directory
27JERRYDIR ?= $(CURDIR)
28
29# path to the application directory
30APPDIR ?= $(JERRYDIR)/targets/riot-stm32f4/source
31
32# path to the binary directory
33BINDIR ?= $(JERRYDIR)/targets/riot-stm32f4/bin/
34
35# Change this to 0 show compiler invocation lines by default:
36QUIET ?= 1
37
38INCLUDES += -I$(JERRYDIR)/jerry-core/include -I$(JERRYDIR)/jerry-ext/include
39
40# Add the shell and some shell commands
41USEMODULE += shell
42USEMODULE += shell_commands
43
44# Add the jerry libs
45USEMODULE += libjerry-core libjerry-port-default-minimal libjerry-ext
46
47
48include $(RIOTBASE)/Makefile.include
49