#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

DEB_HOST_GNU_SYSTEM := $(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM)

# Define the OS
ifeq ($(DEB_HOST_GNU_SYSTEM), linux-gnu)
        target = linux
else ifeq ($(DEB_HOST_GNU_SYSTEM), kfreebsd-gnu)
        target = freebsd
else
        target = generic
endif

%:
	dh $@

override_dh_auto_build:
	dh_auto_build -- $(target)
