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 ################################################################################
19 # Check for verbose build
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.
31 ROOT_DIR_SCRIPTS =$(patsubst %/build/scripts,%,$(BUILD_DIR))
32 COM_BUILD_DIR=$(BUILD_DIR)/../common
33 ROOT_DIR=$(patsubst %/build/odu,%,$(BUILD_DIR))
38 # Path where the .o files or the directories with .o files are located
39 OBJ_ROOT =$(BUILD_DIR)/obj
41 # Path where the binary logging related files are generated
42 LOG_ROOT =$(BUILD_DIR)/logdb
44 # Path where the libraries are created
45 LIB_ROOT =$(BUILD_DIR)/lib
47 # Path for the common files that are used across multiple layers
48 CM_DIR =$(ROOT_DIR)/src/cm
50 # Path where the final binaries are created
51 BIN_DIR =$(BUILD_DIR)/bin
53 # Path where the libraries are packaged and these are used when not built from source
54 EXT_LIB_DIR =$(ROOT_DIR)/lib
57 CMENBE2EOPTS += $(RLOG_OPTS_TEXT)
59 L_OPTS = -lrt -lm -lpthread -lpcap -lstdc++ -L $(LIB_ROOT)
61 #**********************************************************************
63 #**********************************************************************