#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_CFLAGS_MAINT_APPEND += -std=gnu89 -fcommon -Wno-pointer-to-int-cast -Wno-error=old-style-definition -fno-builtin -Wno-implicit-function-declaration
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@ 

override_dh_autoreconf:
	ln -s /usr/share/gettext/config.rpath .
	dh_autoreconf

override_dh_auto_build:
	RESOLUTION=RES1024 $(MAKE) CFLAGS="$(CFLAGS)"

override_dh_auto_clean:
	dh_auto_clean
	rm -f config.rpath

override_dh_install:
	dh_install
	$(MAKE) install DESTDIR=`pwd`/debian/spellcast
