#!/usr/bin/make -f

export DEB_LDFLAGS_MAINT_APPEND += -Wl,-z,defs -Wl,--as-needed
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

.PHONY: build
build:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --without-documentation --disable-samples

override_dh_auto_build-indep:
	doxygen Doxyfile 2>/dev/null

# Tests disabled because they access the network.
override_dh_auto_test:

override_dh_install:
	dh_install -X.md5 -X.map
