#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# gob2-generated C code assigns const-qualified function pointers to
# non-const targets; GCC 14+ promotes -Wincompatible-pointer-types to an
# error, breaking the build.  Relax it back to a warning.
export DEB_CFLAGS_MAINT_APPEND = -Wno-incompatible-pointer-types

M4_MAKEFILE_AM_FILES=libloqui/protocols/jabber/Makefile.am libloqui/Makefile.am src/Makefile.am


override_dh_autoreconf:
	for i in $(M4_MAKEFILE_AM_FILES); do m4 -I. $(CURDIR)/$$i.m4 > $(CURDIR)/$$i; done
	dh_autoreconf

%:
	dh $@
