diff options
author | Junfeng Wang <drenfong.wang@intel.com> | 2020-02-05 17:30:14 +0800 |
---|---|---|
committer | Junfeng Wang <drenfong.wang@intel.com> | 2020-02-24 02:09:21 +0000 |
commit | 18bd20a47409d0292499c1442584a3a34e06755f (patch) | |
tree | afc997f85896388afa10162a2df8a0f5d11b3fc3 /Makefile | |
parent | 3a1d30482cb0514fb18bf08590236fd1b3eba418 (diff) |
fix hyperscan and udpi's building
Change-Id: I004a2d0ac46ebc452d65a0dfbdb8272d7788d5a8
Signed-off-by: Junfeng Wang <drenfong.wang@intel.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 25 |
1 files changed, 14 insertions, 11 deletions
@@ -36,23 +36,24 @@ endif #DEB# ##### #Dependencies to build -DEB_DEPENDS = curl build-essential autoconf automake ccache git cmake wget coreutils ragel libboost-dev +DEB_DEPENDS = curl build-essential autoconf automake ccache git cmake wget coreutils ragel +DEB_DEPENDS += libboost-dev vpp vpp-dev python*-ply ##### #RPM# ##### #Dependencies to build RPM_DEPENDS = curl autoconf automake ccache cmake3 wget gcc gcc-c++ git gtest gtest-devel -RPM_DEPENDS += ragel python-sphinx boost169-devel +RPM_DEPENDS += ragel python-sphinx boost169-devel vpp vpp-devel python*-ply -.PHONY: help install-dep build build-package build-package-hyperscan checkstyle distclean +.PHONY: help install-dep build build-package build-install-package-hyperscan checkstyle distclean help: @echo "Make Targets:" - @echo " install-dep - install software dependencies" - @echo " build-package - build rpm or deb package" - @echo " build-package-hyperscan - build rpm or deb package for hyperscan" - @echo " checkstyle - checkstyle" - @echo " distclean - remove all build directory" + @echo " install-dep - install software dependencies" + @echo " build-package - build rpm or deb package" + @echo " build-install-package-hyperscan - build rpm or deb package for hyperscan" + @echo " checkstyle - checkstyle" + @echo " distclean - remove all build directory" install-dep: ifeq ($(filter ubuntu debian,$(OS_ID)),$(OS_ID)) @@ -60,23 +61,25 @@ ifeq ($(OS_VERSION_ID),14.04) @sudo -E apt-get -y --force-yes install software-properties-common endif @sudo -E apt-get update + @curl -s https://packagecloud.io/install/repositories/fdio/2001/script.deb.sh | sudo bash @sudo -E apt-get $(APT_ARGS) -y --force-yes install $(DEB_DEPENDS) else ifeq ($(OS_ID),centos) + @curl -s https://packagecloud.io/install/repositories/fdio/2001/script.rpm.sh | sudo bash @sudo -E yum install -y $(RPM_DEPENDS) epel-release centos-release-scl devtoolset-7 else $(error "This option currently works only on Ubuntu, Debian, Centos or openSUSE systems") endif -build-package-hyperscan: +build-install-package-hyperscan: @rm -rf $(BR)/build-package-hyperscan/; @mkdir -p $(BR)/build-package-hyperscan/; cd $(BR)/build-package-hyperscan/;\ git clone https://github.com/intel/hyperscan.git; cd hyperscan; \ - git apply $(BR)/../0001-build-package-for-hyperscan.patch; make build-package;\ + git apply $(BR)/../0001-build-package-for-hyperscan.patch; make build-install-package; build-package: ifeq ($(filter ubuntu debian,$(OS_ID)),$(OS_ID)) @mkdir -p $(BR)/build-package/; cd $(BR)/build-package/;\ - $(cmake) -DCMAK_BUILD_TYPE=Release\ + $(cmake) -DCMAKE_BUILD_TYPE=Release\ -DCMAKE_INSTALL_PREFIX=/usr $(WS_ROOT)/;\ make package -j$(nproc); else ifeq ($(OS_ID),centos) |