Always use 'lib' instead of 'lib64'
[vpp.git] / build-data / packages / vpp.mk
1 # Copyright (c) 2015 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 vpp_source = src
15
16 ifneq ($(shell which cmake3),)
17 CMAKE?=cmake3
18 else
19 CMAKE?=cmake
20 endif
21
22 vpp_cmake_args ?=
23 vpp_cmake_args += -DCMAKE_INSTALL_PREFIX:PATH=$(PACKAGE_INSTALL_DIR)
24 vpp_cmake_args += -DCMAKE_C_FLAGS="$($(TAG)_TAG_CFLAGS)"
25 vpp_cmake_args += -DCMAKE_LINKER_FLAGS="$($(TAG)_TAG_LDFLAGS)"
26 vpp_cmake_args += -DCMAKE_PREFIX_PATH:PATH="$(PACKAGE_INSTALL_DIR)/../dpdk"
27
28 # Use devtoolset on centos 7
29 ifneq ($(wildcard /opt/rh/devtoolset-7/enable),)
30 vpp_cmake_args += -DCMAKE_PROGRAM_PATH:PATH="/opt/rh/devtoolset-7/root/bin"
31 endif
32
33 vpp_configure_depend += dpdk-install
34 vpp_configure = \
35   cd $(PACKAGE_BUILD_DIR) && \
36   $(CMAKE) -G Ninja $(vpp_cmake_args) $(call find_source_fn,$(PACKAGE_SOURCE))
37 #vpp_make_args = --no-print-directory
38 vpp_build = $(CMAKE) --build $(PACKAGE_BUILD_DIR)
39 vpp_install = $(CMAKE) --build $(PACKAGE_BUILD_DIR) -- install | grep -v 'Set runtime path'