Imported Debian patch 7.1.614-1
[packages/dc3dd.git] / debian / rules
1 #!/usr/bin/make -f
2
3 DEB_HOST_GNU_TYPE       ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
4 DEB_BUILD_GNU_TYPE      ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
5
6 ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
7         CROSS=CC=$(DEB_HOST_GNU_TYPE)-gcc
8 else
9         CROSS=
10 endif
11
12 export LDFLAGS+=-Wl,-z,defs
13
14 %:
15         dh $@ --with autotools_dev
16
17 override_dh_auto_configure:
18         dh_auto_configure -- $(CROSS) --enable-hpadco
19
20 override_dh_auto_clean:
21         [ ! -f Makefile ] || $(MAKE) maintainer-clean
22         dh_clean