#! /usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export DEB_BUILD_MAINT_OPTIONS=hardening=+all
# link with -latomic on armel and mipsel
ifneq (,$(filter armel mipsel,$(DEB_HOST_ARCH)))
export DEB_LDFLAGS_MAINT_APPEND=-latomic
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- -Dtests=true

override_dh_auto_test:
	dh_auto_test -- -t 100
