#!/usr/bin/make -f

export DEB_LDFLAGS_MAINT_APPEND=-Wl,-z,defs -Wl,--as-needed -Wl,-O1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

override_dh_auto_configure:
	find .pc -type f -name '*.c' -exec echo '{}' >> po/POTFILES.skip \;
	dh_auto_configure

override_dh_auto_clean:
	rm -f po/POTFILES.skip
	dh_auto_clean

override_dh_autoreconf:
	dh_autoreconf xdt-autogen

%:
	dh $@ --with autoreconf
