#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_configure:
	./configure --gmp-prefix="/usr" --triplet="$(DEB_HOST_MULTIARCH)" --disable-tuning \
            --prefix="$(CURDIR)/debian/tmp/usr" --cflags="$(CFLAGS) $(CPPFLAGS) -fPIC" --ldflags="$(LDFLAGS)"

override_dh_auto_build:
	$(MAKE) libzn_poly.so

override_dh_auto_test:
	$(MAKE) test
	test/test all
