1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
#!/usr/bin/make -f
-include /usr/share/dpkg/buildtools.mk
CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
CFLAGS += -Wall
export CC CFLAGS CPPFLAGS LDFLAGS
%:
dh $@
# 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)"
|