#!/usr/bin/make -f
#export DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS  = hardening=+all
export DEB_CXXFLAGS_MAINT_APPEND = -Wall -pedantic -DUSE_ZLIB
export DEB_LDFLAGS_MAINT_APPEND	 = -Wl,--as-needed

# Fixes FTCBFS. See https://bugs.debian.org/895298
-include /usr/share/dpkg/buildtools.mk

%:
	dh $@

# Avoids FTCBFS by passing CC to make explicitly.
override_dh_auto_build:
	make CC=$(CC) -f Makefile.unx
