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 #*********************************************************************17*/
19 # Name: gNodeB Sample Application
23 # Desc: Compile, assemble and link product software for
24 # various configurations. Further comments are
25 # embedded in the file.
27 # This file supports a variety of environments and
28 # build targets. The default build target will be the
29 # portable target for the Linu 2.4.x with GNU C(gcc)
31 # Env: Linux 2.4.x with GNU C (gcc)
35 #********************************************************************21*/
36 #=======================================================================
42 # Check for verbose build
50 # With the assumption that the make command is run from the directory
51 # where the makefile is located, PWD fetches the build directory and
52 # all other directories are generated using the build directory.
54 ROOT_DIR_SCRIPTS =$(patsubst %/build/scripts,%,$(BUILD_DIR))
55 COM_BUILD_DIR=$(BUILD_DIR)/../common
59 # Path where the .o files or the directories with .o files are located
60 OBJ_ROOT =$(BUILD_DIR)/obj
62 # Path where the binary logging related files are generated
63 LOG_ROOT =$(BUILD_DIR)/logdb
65 # Path where the libraries are created
66 LIB_ROOT =$(BUILD_DIR)/lib
68 # Path for the common files that are used across multiple layers
69 CM_DIR =$(ROOT_DIR)/src/cm
71 # Path where the final binaries are created
72 BIN_DIR =$(BUILD_DIR)/build/obj
74 # Path where the libraries are packaged and these are used when not built from source
75 EXT_LIB_DIR =$(ROOT_DIR)/lib
78 CMENBE2EOPTS += $(RLOG_OPTS_TEXT)
80 L_OPTS = -lrt -lm -lpthread -lpcap -lstdc++ -L $(LIB_ROOT)