#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
DEB_HOST_ARCH_ENDIAN ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_ENDIAN)

%:
	dh $@ --with autoreconf

override_dh_auto_test:
# skip failing test_tlscomm on all archs
# and test_wmbiff on big endian archs (TODO: why?)
ifeq ($(DEB_HOST_ARCH_ENDIAN), little)
	dh_auto_test -- TESTS=test_wmbiff
endif
