1 ################################################################################
2 # Copyright (c) [2017-2019] [Radisys] #
4 # Licensed under the Apache License, Version 2.0 (the "License"); #
5 # you may not use this file except in compliance with the License. #
6 # You may obtain a copy of the License at #
8 # http://www.apache.org/licenses/LICENSE-2.0 #
10 # Unless required by applicable law or agreed to in writing, software #
11 # distributed under the License is distributed on an "AS IS" BASIS, #
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
13 # See the License for the specific language governing permissions and #
14 # limitations under the License. #
15 ################################################################################
17 include ../common/rsys_fancy.mak
18 include ../common/env.mak
21 SRC_DIR=$(ROOT_DIR)/src/5gnrmac
23 # prepare the list of common header files
24 HDR_FILES+=$(wildcard $(CM_DIR)/env*.[hx])
25 HDR_FILES+=$(wildcard $(CM_DIR)/gen*.[hx])
26 HDR_FILES+=$(wildcard $(CM_DIR)/ssi*.[hx])
27 HDR_FILES+=$(wildcard $(CM_DIR)/cm*.[hx])
28 HDR_FILES+=$(wildcard $(CM_DIR)/crg.[hx])
29 HDR_FILES+=$(wildcard $(CM_DIR)/lrg*.[hx])
30 HDR_FILES+=$(wildcard $(CM_DIR)/rgr.[hx])
31 HDR_FILES+=$(wildcard $(CM_DIR)/rgm.[hx])
32 HDR_FILES+=$(wildcard $(CM_DIR)/mac*.[hx])
34 # Add the product specific header files
35 HDR_FILES+= $(wildcard $(SRC_DIR)/*.[hx])
37 #prepare the list of source files
38 C_SRCS=$(wildcard $(SRC_DIR)/*.c)
39 #C_SRCS:=$(filter-out $(SRC_DIR)/rg_sch%, $(C_SRCS))
41 #prepare the list of object files and RLOG related files
42 C_OBJS=$(patsubst $(SRC_DIR)/%.c,$(OBJ_DIR)/%.o,$(C_SRCS))
44 #-------------------------------------------------------------#
45 #User macros (to be modified)
46 #-------------------------------------------------------------#
47 # Including RG_PHASE2_SCHED for supporting more than one schedulers
49 # TODO: make it define for LTEMAC_MIMO and remove it from envopt.h
50 MOD_FLAGS=-DRGM_LC -DRGM_LWLC -USM -URG_DEBUG -DxRG_PHASE2_SCHED -DxRGR_V1 \
51 -DRG_UL_DELTA=2 -ULTEMAC_DLUE_TMGOPTMZ -UTENB_SPLIT_ARCH -DRG -ULTEMAC_MIMO
53 lib:$(LIB_DIR)/librg.a
54 include $(COM_BUILD_DIR)/compile.mak
56 I_OPTS+=-I$(ROOT_DIR)/src/5gnrsch
57 I_OPTS+=-I$(ROOT_DIR)/src/intel_fapi
58 I-OPTS+=-I$(ROOT_DIR)/src/wls_lib
60 #-------------------------------------------------------------#
62 #-------------------------------------------------------------#
63 $(LIB_DIR)/librg.a:$(C_OBJS)
64 @echo -e "Creating Archive $(COLOR) $@ $(REVERT_COLOR)"
65 $(Q)ar -cr $(LIB_DIR)/librg.a $(C_OBJS)
67 #-------------------------------------------------------------#
69 #-------------------------------------------------------------#
71 @echo -e "$(COLOR_RED)Cleaing MAC$(REVERT_COLOR)"
72 $(Q)\rm -f $(LIB_DIR)/librg.a $(C_OBJS)
74 #**********************************************************************
76 #**********************************************************************