blob: 901d4689766b17f6c950301b176fa33ea34d102f [file] [log] [blame]
Damjan Marion4a6cb832018-09-18 18:41:38 +02001#!/usr/bin/make -f
2DH_VERBOSE = 1
Damjan Marion561f2732018-09-21 12:27:45 +02003DEB_BUILD_OPTIONS = noddebs
Dave Wallace738eaa62022-08-29 22:45:03 -04004DEB_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
Damjan Marion4a6cb832018-09-18 18:41:38 +02007PKG=vpp-ext-deps
8
9VERSION = $(shell dpkg-parsechangelog | sed -nr '/^Version:/s/Version: //p')
10BASE_VER = $(word 1, $(subst -, ,$(VERSION)))
11
Damjan Marion561f2732018-09-21 12:27:45 +020012export BUILD_DIR=$(CURDIR)/_build
13export INSTALL_DIR=$(CURDIR)/debian/tmp/opt/vpp/external/$(shell uname -m)/
Damjan Marion4a6cb832018-09-18 18:41:38 +020014
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:
Damjan Marion4a6cb832018-09-18 18:41:38 +020026
27override_dh_install:
28 make $(MAKE_ARGS) install
Mohammed Hawari9db6db02023-02-02 13:29:28 +010029 @mkdir -p $(INSTALL_DIR)
Damjan Marion4a6cb832018-09-18 18:41:38 +020030 dh_install -p$(PKG) --autodest /opt
31
Mohammed Hawari45e4e942022-09-20 18:44:36 +020032override_dh_shlibdeps:
33 dh_shlibdeps -l$(INSTALL_DIR)lib/