| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | # Enable compiler hardening flags. |
| 4 | export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 5 | |
| 6 | # Enable verbose testing. |
| 7 | export C_TAP_VERBOSE = 1 |
| 8 | |
| 9 | DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) |
| 10 | ifeq ($(DEB_HOST_ARCH_OS),linux) |
| 11 | SETPAG = --enable-setpag |
| 12 | else |
| 13 | SETPAG = --disable-setpag |
| 14 | endif |
| 15 | |
| 16 | %: |
| 17 | dh $@ |
| 18 | |
| 19 | override_dh_auto_configure: |
| 20 | dh_auto_configure -- --enable-reduced-depends $(SETPAG) \ |
| 21 | --without-libkafs --with-aklog=/usr/bin/aklog |