Damjan Marion | 4a6cb83 | 2018-09-18 18:41:38 +0200 | [diff] [blame] | 1 | #!/usr/bin/make -f |
| 2 | DH_VERBOSE = 1 |
Damjan Marion | 561f273 | 2018-09-21 12:27:45 +0200 | [diff] [blame] | 3 | DEB_BUILD_OPTIONS = noddebs |
Dave Wallace | 738eaa6 | 2022-08-29 22:45:03 -0400 | [diff] [blame] | 4 | DEB_CFLAGS_MAINT_STRIP = -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -O2 |
| 5 | DEB_LDFLAGS_MAINT_STRIP = -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects |
| 6 | DEB_CFLAGS_MAINT_APPEND = -O3 |
Damjan Marion | 4a6cb83 | 2018-09-18 18:41:38 +0200 | [diff] [blame] | 7 | PKG=vpp-ext-deps |
| 8 | |
| 9 | VERSION = $(shell dpkg-parsechangelog | sed -nr '/^Version:/s/Version: //p') |
| 10 | BASE_VER = $(word 1, $(subst -, ,$(VERSION))) |
| 11 | |
Damjan Marion | 561f273 | 2018-09-21 12:27:45 +0200 | [diff] [blame] | 12 | export BUILD_DIR=$(CURDIR)/_build |
| 13 | export INSTALL_DIR=$(CURDIR)/debian/tmp/opt/vpp/external/$(shell uname -m)/ |
Damjan Marion | 4a6cb83 | 2018-09-18 18:41:38 +0200 | [diff] [blame] | 14 | |
| 15 | MAKE_ARGS=-C .. |
| 16 | |
| 17 | include /usr/share/dpkg/default.mk |
| 18 | |
| 19 | %: |
| 20 | dh $@ |
| 21 | |
| 22 | override_dh_clean: |
| 23 | make $(MAKE_ARGS) clean |
| 24 | |
| 25 | override_dh_auto_configure: |
Damjan Marion | 4a6cb83 | 2018-09-18 18:41:38 +0200 | [diff] [blame] | 26 | |
| 27 | override_dh_install: |
| 28 | make $(MAKE_ARGS) install |
| 29 | dh_install -p$(PKG) --autodest /opt |
| 30 | |
Mohammed Hawari | 45e4e94 | 2022-09-20 18:44:36 +0200 | [diff] [blame] | 31 | override_dh_shlibdeps: |
| 32 | dh_shlibdeps -l$(INSTALL_DIR)lib/ |