#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

export AUTOHEADER = true
execute_after_dh_autoreconf:
	mv autoconf/configure .

triplet = $(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)
override_dh_auto_configure:
	dh_auto_configure -- --with-curlinc=/usr/include/$(triplet)	\
	                     --with-curllib=/usr/lib/$(triplet)

override_dh_auto_build:
	dh_auto_build -- RPATH=

# Prevent unit tests run, because "make -C src test" fails
# with the error message "tests/test_*.sl: file not found"
override_dh_auto_test:
