#!/usr/bin/make -f

DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
ifeq ($(DEB_HOST_ARCH),armhf)
    export CC=gcc-4.8
    export CXX=g++-4.8
    export DEB_CFLAGS_MAINT_STRIP=-fstack-protector-strong
    export DEB_CFLAGS_MAINT_APPEND=-fstack-protector
    export DEB_CXXFLAGS_MAINT_STRIP=-fstack-protector-strong
    export DEB_CXXFLAGS_MAINT_APPEND=-fstack-protector
endif


%:
	dh $@ --parallel --with autoreconf

override_dh_auto_configure:
	dh_auto_configure
	cp debian/dirac-stdint.h libdirac_common/
