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 9EXE_NAME:=bs_2G4_phy_v1 10SRCS:= src/p2G4_func_queue.c \ 11 src/p2G4_main.c \ 12 src/p2G4_v1_v2_remap.c \ 13 src/p2G4_com.c \ 14 src/p2G4_args.c \ 15 src/p2G4_pending_tx_list.c \ 16 src/p2G4_dump.c \ 17 src/p2G4_channel_and_modem.c \ 18 19A_LIBS:=${BSIM_LIBS_DIR}/libUtilv1.a \ 20 ${BSIM_LIBS_DIR}/libPhyComv1.a \ 21 ${BSIM_LIBS_DIR}/libRandv2.a \ 22 ${BSIM_LIBS_DIR}/lib2G4PhyComv1.a 23SO_LIBS:= 24 25INCLUDES:=-I${libUtilv1_COMP_PATH}/src/ \ 26 -I${libPhyComv1_COMP_PATH}/src/ \ 27 -I${libRandv2_COMP_PATH}/src/ \ 28 -I${2G4_libPhyComv1_COMP_PATH}/src 29 30DEBUG:=-g 31OPT:= -O2 -fno-strict-aliasing 32ARCH:= 33WARNINGS:=-Wall -pedantic 34COVERAGE:= 35CFLAGS:=${ARCH} ${DEBUG} ${OPT} ${WARNINGS} -MMD -MP -std=c99 ${INCLUDES} 36LDFLAGS:=${ARCH} ${COVERAGE} -ldl -rdynamic -lm 37#-ldl : link to the dl library: we will use the dinamic runtime library linking (for the selected channel and modems) 38#-rdynamic : the global symbols in the executable will also be used to resolve references in dynamically loaded libraries. 39#-z now: When generating an executable or shared library, mark it to tell the dynamic linker to resolve all symbols when the program is started 40CPPFLAGS:=-D_XOPEN_SOURCE=700 41 42include ${BSIM_BASE_PATH}/common/make.device.inc 43