Initial commit
[o-du/l2.git] / build / common / kw.mak
1 ################################################################################
2 #   Copyright (c) [2017-2019] [Radisys]                                        #
3 #                                                                              #
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                                    #
7 #                                                                              #
8 #       http://www.apache.org/licenses/LICENSE-2.0                             #
9 #                                                                              #
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 ################################################################################
16
17 ##-------------------------------------------------------------#
18 ##Makefile for product ib - script generated.
19 #Only the $(CCib) may be modified.
20 #-------------------------------------------------------------#
21 include ../common/rsys_fancy.mak
22 include ../common/env.mak
23
24 SRC_DIR=$(ROOT_DIR)/src/5gnrrlc
25
26 #Prepare source file list
27 C_SRCS=$(wildcard $(SRC_DIR)/*.c)
28
29 #prepare the list of object files and RLOG related files
30 C_OBJS=$(patsubst $(SRC_DIR)/%.c,$(OBJ_DIR)/%.o,$(C_SRCS))
31
32 #-------------------------------------------------------------#
33 #User macros (to be modified)
34 #-------------------------------------------------------------#
35 MOD_FLAGS=-DRG -DYS -DKW -DPX -DLCRGU -DLCKWULUDX -DLCUDX -DLWLCKWULUDX 
36
37 #-------------------------------------------------------------#
38 #Linker macros             
39 #-------------------------------------------------------------#
40
41 lib: $(LIB_DIR)/libkw.a
42 include $(COM_BUILD_DIR)/compile.mak
43
44 $(LIB_DIR)/libkw.a:$(C_OBJS)
45         @echo -e "Creating Archive $(COLOR) $@ $(REVERT_COLOR)"
46         $(Q)ar -cr $(LIB_DIR)/libkw.a $(C_OBJS) 
47
48 #-------------------------------------------------------------#
49 #Clean macros             
50 #-------------------------------------------------------------#
51 clean:
52         @echo -e "$(COLOR_RED)Cleaning RLC$(REVERT_COLOR)"
53         $(Q)\rm -f $(LIB_DIR)/libkw.a $(C_OBJS)
54