#!/usr/bin/make -f

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

%:
	dh $@

# See https://bugs.debian.org/908017 for --enable-more-warnings
override_dh_auto_configure:
	[ -f ./configure ] || ./autogen.sh
	dh_auto_configure -- \
		--disable-static \
		--without-libnm-glib \
		--enable-more-warnings=yes

override_dh_makeshlibs:
	dh_makeshlibs -X/usr/lib/$(DEB_HOST_MULTIARCH)/NetworkManager/

execute_before_dh_install:
	find debian/tmp -name '*.la' -print -delete
