#!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 CFLAGS:= $(shell dpkg-buildflags --get CFLAGS) CPPFLAGS:= $(shell dpkg-buildflags --get CPPFLAGS) LDFLAGS:= $(shell dpkg-buildflags --get LDFLAGS) CFLAGS += -Wall export CFLAGS CPPFLAGS LDFLAGS # Note: this could be simplified even further using --with autotools_dev, # but it would require another repacking to bring back config.{guess,sub} :) # override_dh_auto_configure: cp -f /usr/share/misc/config.sub . cp -f /usr/share/misc/config.guess . dh_auto_configure -- --bindir=/usr/games override_dh_auto_build: dh_auto_build -- CFLAGS="$(CFLAGS)" %: dh $@