#!/usr/bin/make -f

DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
ifeq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
    CC = gcc
    AR = ar
else
    CC = $(DEB_HOST_GNU_TYPE)-gcc
    AR = $(DEB_HOST_GNU_TYPE)-ar
endif

export CC += -I/usr/src/$(shell dpkg -s linux-headers-keystone | grep Depends: | cut -f2 -d: | tr -d ' ')/include
%:
	dh $@ 
