#!/usr/bin/make -f

DPKG_EXPORT_BUILDFLAGS = 1
-include /usr/share/dpkg/buildflags.mk

export DH_ALWAYS_EXCLUDE = dir.gz

export LDFLAGS += -Wl,--as-needed

%:
	dh $@ --with autotools_dev

override_dh_auto_build:
	dh_auto_build -- LDAPLIBS='-lldap -llber'

override_dh_installchangelogs:
	dh_installchangelogs -X ChangeLog
