| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | # Uncomment this to turn on verbose mode. |
| 4 | #export DH_VERBOSE=1 |
| 5 | |
| 6 | export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) |
| 7 | export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) |
| 8 | |
| 9 | ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) |
| 10 | CC := $(DEB_HOST_GNU_TYPE)-gcc |
| 11 | endif |
| 12 | |
| 13 | %: |
| 14 | dh $@ |
| 15 | |
| 16 | override_dh_auto_build: |
| 17 | $(MAKE) CC=$(CC) CFLAGS="$(shell dpkg-buildflags --get CFLAGS)" |