Make files clean-up
[o-du/l2.git] / 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 Q=
18 S=
19 # Check for verbose build
20 ifneq ($(V),1)
21     Q:=@
22     S:=-s
23 endif
24 export Q
25 export S
26
27 # With the assumption that the make command is run from the directory
28 # where the makefile is located, PWD fetches the build directory and
29 # all other directories are generated using the build directory.
30 BUILD_DIR=$(PWD)
31 ROOT_DIR_SCRIPTS =$(patsubst %/build/scripts,%,$(BUILD_DIR))
32 COM_BUILD_DIR=$(BUILD_DIR)/../common
33 ROOT_DIR=$(patsubst %/build/odu,%,$(BUILD_DIR))
34 export BUILD_DIR
35 export COM_BUILD_DIR
36 export ROOT_DIR
37
38 # Path where the .o files or the directories with .o files are located
39 OBJ_ROOT =$(BUILD_DIR)/obj
40 export OBJ_ROOT
41 # Path where the binary logging related files are generated
42 LOG_ROOT  =$(BUILD_DIR)/logdb
43 export LOG_ROOT
44 # Path where the libraries are created
45 LIB_ROOT =$(BUILD_DIR)/lib
46 export LIB_ROOT
47 # Path for the common files that are used across multiple layers
48 CM_DIR   =$(ROOT_DIR)/src/cm
49 export CM_DIR
50 # Path where the final binaries are created
51 BIN_DIR  =$(BUILD_DIR)/bin
52 export BIN_DIR
53 # Path where the libraries are packaged and these are used when not built from source
54 EXT_LIB_DIR  =$(ROOT_DIR)/lib
55 export EXT_LIB_DIR
56
57 CMENBE2EOPTS += $(RLOG_OPTS_TEXT)
58
59 L_OPTS = -lrt -lm -lpthread -lpcap -lstdc++  -L $(LIB_ROOT)
60
61 #**********************************************************************
62 #         End of file
63 #**********************************************************************