#!/usr/bin/make -f

export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export PYBUILD_NAME = equihash

# needs libequihash0's /usr/lib/x86_64-linux-gnu/libequihash.so.0
export PYBUILD_DISABLE=test/python3

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
export PREFIX=/usr

%:
	#  dh_shlibdeps -Llibequihash -l${PWD}/debian/libequihas/usr/lib
	dh $@ -p libequihash-dev -p libequihash0
	dh $@ -p python3-equihash --with python3 --buildsystem=pybuild --sourcedirectory=python
