#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@ --buildsystem=cmake --without autoreconf

# Upstream unconditionally sets CMAKE_INSTALL_RPATH. Make it ineffective by
# setting CMAKE_SKIP_RPATH
override_dh_auto_configure:
	dh_auto_configure -O--buildsystem=cmake -- -DCMAKE_SKIP_RPATH=ON -DENABLE_UNIT_TESTS=no -DENABLE_STATIC=NO

override_dh_auto_clean:
	dh_auto_clean -O--buildsystem=cmake
