| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- mode: makefile; coding: utf-8 -*- |
| 3 |
|
| 4 |
ifneq (,$(filter $(DEB_HOST_ARCH),armel armhf)) |
| 5 |
CFLAGS=-g -O0 |
| 6 |
endif |
| 7 |
|
| 8 |
# To enable PIE and ld -z "now". |
| 9 |
# Experimental 5 Feb 2016 to silence lintian hardening-no-pie and |
| 10 |
# hardening-no-bindnow |
| 11 |
# https://wiki.debian.org/HardeningWalkthrough#Selecting_security_hardening_options |
| 12 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 13 |
|
| 14 |
%: |
| 15 |
dh $@ --exclude=.la |
| 16 |
|
| 17 |
override_dh_autoreconf: |
| 18 |
AUTOMAKE='automake --foreign' dh_autoreconf |
| 19 |
|
| 20 |
override_dh_makeshlibs: |
| 21 |
dh_makeshlibs -V |
| 22 |
|
| 23 |
override_dh_clean: |
| 24 |
$(RM) -f doc/doxygen.conf |
| 25 |
$(RM) -r doc/html |
| 26 |
if [ -f Makefile ]; then $(MAKE) clean; fi |
| 27 |
dh_clean |