#!/usr/bin/make -f
#DH_VERBOSE = 1

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# Workaround to https://bugs.debian.org/1075177
export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic -Wno-error=incompatible-pointer-types -Wno-error=int-conversion
export DEB_LDFLAGS_MAINT_APPEND =

VALAFLAGS:=$(foreach w,$(CPPFLAGS) $(CFLAGS) $(LDFLAGS),-X $(w))

%:
	dh $@ --with autoreconf

override_dh_autoreconf:
	dh_autoreconf ./autogen.sh

override_dh_auto_configure:
	dh_auto_configure -- --disable-silent-rules
