#!/usr/bin/make -f

#export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all reproducible=+all future=+all
export LDFLAGS=-Wl,-Bsymbolic-functions

%:
	dh $@

#Create engine symlink because strongswan openssl.cnf tries to load library in different places depending on distro
execute_after_dh_auto_install:
	find $(CURDIR)/debian/ -name "*.la" -delete
	ln -s "libbfengine.so" `find $(CURDIR)/debian/ -iname 'libbfengine.so' -printf '%h/pka.so'`
