#!/usr/bin/make -f
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
CFLAGS := $(shell dpkg-buildflags --get CFLAGS)

%:
	dh $@ --parallel --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- \
		--prefix=/usr \
		--bindir=/usr/games \
		--datadir=/usr/share/games \
		--datarootdir=/usr/share/games

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