#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs -lresolv -lssl -lcrypto

# Fix build with GCC >= 15
export DEB_CPPFLAGS_MAINT_APPEND = -DSM_CONF_STDBOOL_H=1

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		--with-openssl \
		--with-libjansson \
		--with-domain=localhost

override_dh_installchangelogs:
	dh_installchangelogs CHANGELOG.md
