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)
82G4_phy_v1_COMP_PATH?=$(abspath ${BSIM_COMPONENTS_PATH}/ext_2G4_phy_v1)
9
10SRCS:=src/modem_magic.c \
11      src/modem_magic_args.c
12LIB_NAME:=lib_2G4Modem_Magic
13INCLUDES:=-I${libUtilv1_COMP_PATH}/src/ \
14          -I${libPhyComv1_COMP_PATH}/src/ \
15          -I${libRandv2_COMP_PATH}/src/ \
16          -I${2G4_libPhyComv1_COMP_PATH}/src \
17          -I${2G4_phy_v1_COMP_PATH}/src/ \
18
19A_LIBS:=
20#remember to compile whoever uses this with -rdynamic so we can use its libUtil functions
21SO_LIBS:=
22DEBUG:=-g
23OPT:=
24ARCH:=
25WARNINGS:=-Wall -pedantic
26COVERAGE:=
27CFLAGS:=${ARCH} ${DEBUG} ${OPT} ${WARNINGS} -MMD -MP -std=c99  -fPIC ${INCLUDES}
28LDFLAGS:=${ARCH} ${COVERAGE}
29CPPFLAGS:=
30
31include ${BSIM_BASE_PATH}/common/make.lib_so.inc
32