1# Copyright 2018 Oticon A/S 2# Copyright 2023 Nordic Semiconductor ASA 3# SPDX-License-Identifier: Apache-2.0 4 5include make_inc/pre.mk 6 7VARIANT=NRF52833 8HAL_VARIANT=NRF52833_XXAA 9 10HW_SRCS_FILE=make_inc/52833_hw_files 11HAL_SRCS_FILE=make_inc/52833_hal_files 12 13SRCS_HW=$(shell cat ${HW_SRCS_FILE}) 14SRCS_HAL=$(shell cat ${HAL_SRCS_FILE}) 15 16SRCS=${SRCS_HW} ${SRCS_HAL} 17 18INCLUDES:=-I${NATIVE_SIM_PATH}/common/src/include/ \ 19 -I${NATIVE_SIM_PATH}/common/src/ \ 20 -I${libUtilv1_COMP_PATH}/src/ \ 21 -I${libPhyComv1_COMP_PATH}/src/ \ 22 -I${2G4_libPhyComv1_COMP_PATH}/src \ 23 -I${libRandv2_COMP_PATH}/src/ \ 24 -Isrc/nrfx/mdk_replacements \ 25 -Isrc/HW_models/ \ 26 -Isrc/nrfx_config \ 27 -Isrc/nrfx/nrfx_replacements \ 28 -I${NRFX_BASE} \ 29 -I${NRFX_BASE}/mdk 30 31NRF_HW_MODELS_LIB_SUFFIX?= 32LIB_NAME=libnRF_hw_models.${VARIANT}.32${NRF_HW_MODELS_LIB_SUFFIX} 33A_LIBS:= 34A_LIBS32:= 35SO_LIBS:= 36DEBUG:=-g 37OPT:= 38ARCH:=-m32 39WARNINGS:=-Wall -Wpedantic 40COVERAGE:= 41CFLAGS=${ARCH} ${DEBUG} ${OPT} ${WARNINGS} -MMD -MP -std=gnu11 \ 42 ${INCLUDES} -fdata-sections -ffunction-sections \ 43 -D${VARIANT} -D_XOPEN_SOURCE=500 -D${HAL_VARIANT} 44LDFLAGS:=${ARCH} ${COVERAGE} 45CPPFLAGS:= 46 47include make_inc/common_post.mk 48