You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
327 B

  1. #! /usr/bin/make -f
  2. DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
  3. DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
  4. %:
  5. dh $@
  6. ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
  7. CROSS :=
  8. else
  9. CROSS := CC=$(DEB_HOST_GNU_TYPE)-gcc
  10. endif
  11. override_dh_auto_build:
  12. $(MAKE) small $(CROSS)