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 # This is makefile for DU APP
19 include ../common/rsys_fancy.mak
20 include ../common/env.mak
23 SRC_DIR=$(ROOT_DIR)/src/du_app/
24 C_SRCS=$(wildcard $(SRC_DIR)/*.c)
25 C_OBJS=$(patsubst $(SRC_DIR)/%.c,$(OBJ_DIR)/%.o,$(C_SRCS))
27 # prepare the list of common header files
28 HDR_FILES+=$(wildcard $(CM_DIR)/env*.[hx])
29 HDR_FILES+=$(wildcard $(CM_DIR)/gen*.[hx])
30 HDR_FILES+=$(wildcard $(CM_DIR)/ssi*.[hx])
31 HDR_FILES+=$(wildcard $(CM_DIR)/cm*.[hx])
32 HDR_FILES+=$(wildcard $(CM_DIR)/lkw*.[hx])
33 HDR_FILES+=$(wildcard $(CM_DIR)/lrg*.[hx])
35 lib: $(LIB_DIR)/libduapp.a
36 include $(COM_BUILD_DIR)/compile.mak
38 I_OPTS+=-I$(ROOT_DIR)/src/mt
39 I_OPTS+=-I$(ROOT_DIR)/src/codec_utils/common
40 I_OPTS+=-I$(ROOT_DIR)/src/codec_utils/F1AP
41 I_OPTS+=-I$(ROOT_DIR)/src/codec_utils/RRC
42 I_OPTS+=-I$(ROOT_DIR)/src/codec_utils/E2AP
43 I_OPTS+=-I$(ROOT_DIR)/src/codec_utils/E2SM_KPM
45 ifeq ($(O1_ENABLE),YES)
46 I_OPTS+=-I$(ROOT_DIR)/src/o1
49 #-------------------------------------------------------------#
51 #-------------------------------------------------------------#
52 $(LIB_DIR)/libduapp.a:$(C_OBJS)
53 @echo -e "Creating Archive $(COLOR) $@ $(REVERT_COLOR)"
54 $(Q)ar -cr $(LIB_DIR)/libduapp.a $(C_OBJS)
56 #-------------------------------------------------------------#
58 #-------------------------------------------------------------#
60 @echo -e "$(COLOR_RED)Cleaning DU APP$(REVERT_COLOR)"
61 @echo $(SRC_DIR) $(CM_DIR)
62 $(Q)\rm -f $(LIB_DIR)/libduapp.a $(C_OBJS)
64 #**********************************************************************
66 #**********************************************************************