3 CFLAGS=$(shell dpkg-buildflags --get CFLAGS) -D_FORTIFY_SOURCE=2
4 LDFLAGS=$(shell dpkg-buildflags --get LDFLAGS) -Wl,-z,relro
6 # Install in debian/tmp to retain control through dh_install:
7 override_dh_auto_install:
8 dh_auto_install --destdir=debian/tmp
10 override_dh_auto_clean:
11 [ ! -f Makefile ] || $(MAKE) distclean
14 # Kill *.la files, and forget no-one:
16 find debian/tmp -name '*.la' -delete
17 install -d debian/xserver-xorg-input-mtrack/usr/share/X11/xorg.conf.d
18 install -m 644 debian/local/50-mtrack.conf \
19 debian/xserver-xorg-input-mtrack/usr/share/X11/xorg.conf.d
21 dh_install --fail-missing
23 override_dh_auto_build:
24 $(MAKE) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" V=1
26 override_dh_shlibdeps:
27 dh_shlibdeps -- --warnings=6
30 dh $@ --with xsf,autoreconf