Adding release file
[o-du/l2.git] / src / build / common / env.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 #*********************************************************************17*/
18 #
19 #       Name:   gNodeB Sample Application
20 #
21 #       Type:   make file
22 #
23 #       Desc:   Compile, assemble and link product software for
24 #               various configurations. Further comments are
25 #               embedded in the file. 
26 #
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)
30 #
31 #       Env:    Linux 2.4.x with GNU C (gcc)
32 #
33 #       File:   env.mak
34 #
35 #********************************************************************21*/
36 #=======================================================================
37
38 STOPTS=-DENB 
39
40 Q=
41 S=
42 # Check for verbose build
43 ifneq ($(V),1)
44     Q:=@
45     S:=-s
46 endif
47 export Q
48 export S
49
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.
53 BUILD_DIR=$(PWD)
54 ROOT_DIR_SCRIPTS =$(patsubst %/build/scripts,%,$(BUILD_DIR))
55 COM_BUILD_DIR=$(BUILD_DIR)/../common
56 ROOT_DIR=$(patsubst %/build/odu,%,$(BUILD_DIR))
57 export BUILD_DIR
58 export COM_BUILD_DIR
59 export ROOT_DIR
60
61 # Path where the .o files or the directories with .o files are located
62 OBJ_ROOT =$(BUILD_DIR)/obj
63 export OBJ_ROOT
64 # Path where the binary logging related files are generated
65 LOG_ROOT  =$(BUILD_DIR)/logdb
66 export LOG_ROOT
67 # Path where the libraries are created
68 LIB_ROOT =$(BUILD_DIR)/lib
69 export LIB_ROOT
70 # Path for the common files that are used across multiple layers
71 CM_DIR   =$(ROOT_DIR)/src/cm
72 export CM_DIR
73 # Path where the final binaries are created
74 BIN_DIR  =$(BUILD_DIR)/bin
75 export BIN_DIR
76 # Path where the libraries are packaged and these are used when not built from source
77 EXT_LIB_DIR  =$(ROOT_DIR)/lib
78 export EXT_LIB_DIR
79
80 CMENBE2EOPTS += $(RLOG_OPTS_TEXT)
81
82 L_OPTS = -lrt -lm -lpthread -lpcap -lstdc++  -L $(LIB_ROOT)