X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=build%2Fcommon%2Frg.mak;fp=build%2Fcommon%2Frg.mak;h=6b8fac2a339553147d331bfa7d442c07216d862e;hb=5625a52ad68f6ad93684e68bbbdbaef0d462cf9a;hp=0000000000000000000000000000000000000000;hpb=59f84608ec15c016958a6e0e0ddd813f376c0925;p=o-du%2Fl2.git diff --git a/build/common/rg.mak b/build/common/rg.mak new file mode 100644 index 000000000..6b8fac2a3 --- /dev/null +++ b/build/common/rg.mak @@ -0,0 +1,70 @@ +################################################################################ +# Copyright (c) [2017-2019] [Radisys] # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +################################################################################ + +##-------------------------------------------------------------# +#Makefile for product RG - script generated. +#-------------------------------------------------------------# +include ../common/rsys_fancy.mak +include ../common/env.mak +COLOR=$(COLOR_GREEN) + +SRC_DIR=$(ROOT_DIR)/src/5gnrmac + +# prepare the list of common header files +HDR_FILES+=$(wildcard $(CM_DIR)/env*.[hx]) +HDR_FILES+=$(wildcard $(CM_DIR)/gen*.[hx]) +HDR_FILES+=$(wildcard $(CM_DIR)/ssi*.[hx]) +HDR_FILES+=$(wildcard $(CM_DIR)/cm*.[hx]) +HDR_FILES+=$(wildcard $(CM_DIR)/crg.[hx]) +HDR_FILES+=$(wildcard $(CM_DIR)/lrg*.[hx]) +HDR_FILES+=$(wildcard $(CM_DIR)/rgr.[hx]) +HDR_FILES+=$(wildcard $(CM_DIR)/rgm.[hx]) + +# Add the product specific header files +HDR_FILES+= $(wildcard $(SRC_DIR)/*.[hx]) + +#prepare the list of source files +C_SRCS=$(wildcard $(SRC_DIR)/*.c) + +#prepare the list of object files and RLOG related files +C_OBJS=$(patsubst $(SRC_DIR)/%.c,$(OBJ_DIR)/%.o,$(C_SRCS)) + +#-------------------------------------------------------------# +#User macros (to be modified) +#-------------------------------------------------------------# +# Including RG_PHASE2_SCHED for supporting more than one schedulers +# supported by mac +# TODO: make it define for LTEMAC_MIMO and remove it from envopt.h +MOD_FLAGS=-DRGM_LC -DRGM_LWLC -USM -DTF -URG_DEBUG -DxRG_PHASE2_SCHED -DxRGR_V1 \ + -DRG_UL_DELTA=2 -ULTEMAC_DLUE_TMGOPTMZ -UTENB_SPLIT_ARCH -DRG -ULTEMAC_MIMO + +lib:$(LIB_DIR)/librg.a +include $(COM_BUILD_DIR)/compile.mak + +#-------------------------------------------------------------# +#Linker macros +#-------------------------------------------------------------# +$(LIB_DIR)/librg.a:$(C_OBJS) + @echo -e "Creating Archive $(COLOR) $@ $(REVERT_COLOR)" + $(Q)ar -cr $(LIB_DIR)/librg.a $(C_OBJS) + +#-------------------------------------------------------------# +#Clean macros +#-------------------------------------------------------------# +clean: + @echo -e "$(COLOR_RED)Cleaing MAC$(REVERT_COLOR)" + $(Q)\rm -f $(LIB_DIR)/librg.a $(C_OBJS) +