#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export DEB_CFLAGS_MAINT_APPEND = -std=gnu17

ifeq ($(DEB_BUILD_ARCH_OS),kfreebsd)
OPTARGS:= --disable-xattr --disable-acl
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(OPTARGS)

override_dh_auto_install:
	dh_auto_install --destdir=$(CURDIR)/debian/tmp

override_dh_installchangelogs:
	dh_installchangelogs RELNOTES
