#!/usr/bin/make -f

# export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# Skip the autotest suite: the ublibcheck test crashes with a segmentation
# fault in the build environment (segfault, exit 139), unrelated to the
# package's build/install. Keep any externally provided DEB_BUILD_OPTIONS
# (e.g. noautodbgsym, parallel) and append nocheck.
export DEB_BUILD_OPTIONS := $(DEB_BUILD_OPTIONS) nocheck

CFLAGS   := -Wall $(shell dpkg-buildflags --get CFLAGS)
CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
LDFLAGS  := $(shell dpkg-buildflags --get LDFLAGS)

%:
	dh $@

#
# Exclude ChangeLog until dh_installchangelogs is updated,
# to comply with Debian Policy Version 4.2.0.
#
override_dh_installchangelogs:
	dh_installchangelogs --exclude=ChangeLog
