#!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all %: dh $@ execute_before_dh_auto_configure: rm -fv tests/bench_capacity override_dh_auto_build: # See Makefile 'all' rule python3 scripts/gen_p11_thunks.py --profile=fips-strict --root=$(CURDIR) make libfreehsm-fips.so LOCAL_CFLAGS="$(CPPFLAGS) -Wno-error=format-truncation -Wno-error=unused-but-set-variable $(CFLAGS)" LOCAL_LDFLAGS="$(LDFLAGS)" 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