1# Copyright 2018 Oticon A/S 2# SPDX-License-Identifier: Apache-2.0 3 4BSIM_BASE_PATH?=$(abspath ../ ) 5include ${BSIM_BASE_PATH}/common/pre.make.inc 6 72G4_libPhyComv1_COMP_PATH?=$(abspath ${BSIM_COMPONENTS_PATH}/ext_2G4_libPhyComv1) 8 9SRCS:=$(shell find src/ -name "*.c") 10 11ifndef NRFX_BASE 12$(error NRFX_BASE must be set to the nrfx checkout folder) 13endif 14 15INCLUDES:=-I${libUtilv1_COMP_PATH}/src/ \ 16 -I${libPhyComv1_COMP_PATH}/src/ \ 17 -I${2G4_libPhyComv1_COMP_PATH}/src \ 18 -I${libRandv2_COMP_PATH}/src/ \ 19 -Isrc/nrfx/mdk_replacements \ 20 -Isrc/HW_models/ \ 21 -Isrc/nrfx_config \ 22 -Isrc/nrfx/nrfx_replacements \ 23 -I${NRFX_BASE} \ 24 -I${NRFX_BASE}/mdk 25 26 27LIB_NAME:=libNRF52_hw_models.32 28A_LIBS:= 29A_LIBS32:= 30SO_LIBS:= 31DEBUG:=-g 32OPT:= 33ARCH:=-m32 34WARNINGS:=-Wall -pedantic 35COVERAGE:= 36CFLAGS:=${ARCH} ${DEBUG} ${OPT} ${WARNINGS} -MMD -MP -std=c11 \ 37 ${INCLUDES} -fdata-sections -ffunction-sections \ 38 -DNRF52832_XXAA 39LDFLAGS:=${ARCH} ${COVERAGE} 40CPPFLAGS:= 41 42include ${BSIM_BASE_PATH}/common/make.lib_a.inc 43