1# Copyright 2023 Nordic Semiconductor ASA
2# SPDX-License-Identifier: Apache-2.0
3
4ifndef NRFX_BASE
5$(error NRFX_BASE must be set to the nrfx checkout folder)
6endif
7
8ifndef NATIVE_SIM_PATH
9$(error NATIVE_SIM_PATH must be set to the native_simulator checkout folder)
10endif
11
12default: NRF52833 NRF5340
13compile: NRF52833
14
15NRF52833:
16	@$(MAKE) --no-print-directory -f 52833.mk
17
18NRF5340:
19	@$(MAKE) --no-print-directory -f 5340.mk hw
20	@$(MAKE) --no-print-directory -f 5340.mk hal_net
21	@$(MAKE) --no-print-directory -f 5340.mk hal_app
22
23NRF5340_hal_net:
24	@$(MAKE) --no-print-directory -f 5340.mk hw
25	@$(MAKE) --no-print-directory -f 5340.mk hal_net
26
27NRF5340_hal_app:
28	@$(MAKE) --no-print-directory -f 5340.mk hw
29	@$(MAKE) --no-print-directory -f 5340.mk hal_app
30
31# Let's just let the 52833 build handle any other target by default
32%::
33	@$(MAKE) -f 52833.mk $@
34
35.PHONY: NRF52833 NRF5340 default compile
36
37# No need to check implicit rules for this file itself
38Makefile: ;
39