#!/usr/bin/make -f
# $XTermId: rules,v 1.4 2025/01/19 20:52:20 tom Exp $

export DEB_BUILD_MAINT_OPTIONS := hardening=+all qa=+bug reproducible=+all

%:
	dh $@

configure_flags = \
	--with-shared \
	--with-versioned-syms \
	--disable-rpath-hack

# dh_autoreconf interferes with portability -- skip it
override_dh_autoreconf:
	echo "skip: dh_autoreconf autoreconf-dickey -- -f -i"

override_dh_auto_configure:
	dh_auto_configure -- $(configure_flags)

# disable parallel build
override_dh_auto_build:
	make

override_dh_auto_install:
	dh_auto_install -- install

override_dh_installdocs:
	dh_installdocs README

override_dh_installchangelogs:
	dh_installchangelogs ChangeLog

override_dh_installman:
	# dh_install does this

override_dh_shlibdeps:
	dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
