#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

ifeq (linux,$(DEB_HOST_ARCH_OS))
CONFIGURE_FLAGS += --with-systemd \
		   --with-systemdsystemunitdir=/usr/lib/systemd/system
endif

override_dh_auto_configure:
	dh_auto_configure -- $(CONFIGURE_FLAGS)
