#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --with-boost=no --with-ntl --disable-allprogs --disable-static

override_dh_installchangelogs:
	dh_installchangelogs -XChangeLog

override_dh_auto_install:
	dh_auto_install
	find debian/ -name "*.la" -delete

# Upstream doesn't make sure the tests pass on i386 anymore
ifneq (,$(filter i386,$(DEB_HOST_ARCH_CPU)))
override_dh_auto_test:
endif
