blob: 2fd8b3d110def514fc7dc46b195c4382bb73e361 [file] [log] [blame]
Dave Wallace79c8f992024-05-15 18:16:40 -04001#!/usr/bin/make -f
2DH_VERBOSE = 1
3DEB_BUILD_OPTIONS = noddebs
4DEB_CFLAGS_MAINT_STRIP = -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -O2
5DEB_LDFLAGS_MAINT_STRIP = -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects
6DEB_CFLAGS_MAINT_APPEND = -O3
7PKG=vpp-opt-deps
8
9VERSION = $(shell dpkg-parsechangelog | sed -nr '/^Version:/s/Version: //p')
10BASE_VER = $(word 1, $(subst -, ,$(VERSION)))
11
12export BUILD_DIR=$(CURDIR)/_build
13export INSTALL_DIR=$(CURDIR)/debian/tmp/opt/vpp/optional/$(shell uname -m)/
14
15MAKE_ARGS=-C ..
16
17include /usr/share/dpkg/default.mk
18
19%:
20 dh $@
21
22override_dh_clean:
23 make $(MAKE_ARGS) clean
24
25override_dh_auto_configure:
26
27override_dh_install:
28 make $(MAKE_ARGS) install
29 @mkdir -p $(INSTALL_DIR)
30 dh_install -p$(PKG) --autodest /opt
31
32override_dh_shlibdeps:
33 dh_shlibdeps -l$(INSTALL_DIR)lib/:$(INSTALL_DIR)lib64