#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_build: # See Makefile 'all' rule
	python3 scripts/gen_p11_thunks.py --profile=fips-strict --root=$(CURDIR)
	make libfreehsm-fips.so

override_dh_auto_install: # See Makefile 'install' rule
	install -d -m 755 $(CURDIR)/usr/lib/$(DEB_HOST_MULTIARCH)
	install libfreehsm-fips.so $(CURDIR)/usr/lib/$(DEB_HOST_MULTIARCH)/libfreehsm-fips.so
