aboutsummaryrefslogtreecommitdiff
path: root/Makefile.zephyr
blob: eebfc7f634cd37603bc0d5e613f9fb676c4f6ef1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
ifndef ZEPHYR_BASE
$(error ZEPHYR_BASE not set. Source deps/zephyr/zephyr-env.sh)
endif
ifneq ($(shell pwd)/deps/zephyr, $(ZEPHYR_BASE))
$(info Note: ZEPHYR_BASE is set outside the current ZJS tree ($(ZEPHYR_BASE)))
endif

MDEF_FILE = prj.mdef
BOARD ?= arduino_101
CONF_FILE ?= prj.conf

KBUILD_ZEPHYR_APP = libjerry-core.a

obj-y += src/

export KBUILD_ZEPHYR_APP BOARD

include ${ZEPHYR_BASE}/Makefile.inc

ifeq ($(NETWORK_BUILD), y)
include $(ZEPHYR_BASE)/samples/net/common/Makefile.ipstack
endif