#!/usr/bin/make -f include /usr/share/dpkg/buildtools.mk export DEB_BUILD_MAINT_OPTIONS = hardening=+all %: dh $@ override_dh_auto_build: xmkmf dh_auto_build -- CC="$(CC)" CCOPTIONS+="$(CPPFLAGS) $(CFLAGS) $(LDFLAGS)" 9menu override_dh_installchangelogs: sed -n '1,/\*\// {s/^.*\*[ /]\?//; s/9menu.c/Taken from &/; p}' 9menu.c > changelog dh_installchangelogs changelog