#!/usr/bin/make -f

export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_MULTIARCH      ?= $(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)

%:
	dh $@

override_dh_auto_build:
	CFLAGS="$(CPPFLAGS) $(CFLAGS)" dh_auto_build

override_dh_auto_install:
	dh_auto_install -- LIB_DIR=/usr/lib/$(DEB_HOST_MULTIARCH)
