#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo

override_dh_install:
	dh_install
	# Remove libtool archives
	find debian -name '*.la' -delete
	# Remove static libraries
	find debian -name '*.a' -delete
