#!/usr/bin/make -f

export DH_VERBOSE = 1

%:
	exec dh $@ --parallel --builddirectory=build

override_dh_update_autotools_config:
	# Nope, do not touch config.sub or config.guess .

override_dh_auto_configure:
	CFLAGS_FOR_TARGET='-g -O2 -mseparate-code-segment -D_IEEE_LIBM' \
	dh_auto_configure -O--parallel -- \
	    --target=ia16-elf --disable-newlib-wide-orient \
	    --enable-newlib-nano-malloc --disable-newlib-multithread \
	    --enable-newlib-global-atexit --enable-newlib-reent-small
