#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

export DEB_CFLAGS_MAINT_APPEND = -fcommon

%:
	dh $@

execute_after_dh_clean:
	rm -f mirrormagic

# src/Makefile sets PROGBASE=rocksndiamonds, yet builds with the mirrormagic skin!
override_dh_auto_build:
	dh_auto_build -- PROGBASE=mirrormagic \
			BASE_PATH=/usr/share/games/mirrormagic \
			EXTRA_CFLAGS="$(CFLAGS)" \
			EXTRA_LDFLAGS="$(LDFLAGS)"
