1# Copyright 2018 Oticon A/S
2# Copyright 2023 Nordic Semiconductor ASA
3# SPDX-License-Identifier: Apache-2.0
4
5# BSIM_BASE_PATH must point to the bsim base component folder (typically placed directly in
6# bsim/components).
7# And BSIM_COMPONENTS_PATH must point to the bsim/components folder.
8# if these HW models were fetched inside the bsim/components/ folder, it is very likely we will just
9# find them one level up. Otherwise these must be properly set in the environment:
10BSIM_BASE_PATH?=$(abspath ../ )
11BSIM_COMPONENTS_PATH?=${BSIM_BASE_PATH}
12
13include ${BSIM_BASE_PATH}/common/pre.make.inc
14
152G4_libPhyComv1_COMP_PATH?=$(abspath ${BSIM_COMPONENTS_PATH}/ext_2G4_libPhyComv1)
16
17EXTRA_CC_FLAGS?=
18
19CC:=ccache gcc
20
21DEBUG:=-g
22OPT:=
23ARCH:=-m32
24WARNINGS:=-Wall -Wpedantic
25COVERAGE:=
26COMMON_CC_FLAGS:=\
27  ${ARCH} ${DEBUG} ${OPT} ${WARNINGS} -MMD -MP -std=gnu11 \
28  -fdata-sections -ffunction-sections -D_XOPEN_SOURCE=500 -fno-pie -fno-pic ${EXTRA_CC_FLAGS}
29