#!/usr/bin/make -f

#_dhopts := --with autotools_dev
_shlibdeps := -a -Xlib/xtables
_configure := --with-xtlibdir=/lib/xtables \
	--enable-libipq --enable-devel --libdir=/lib

%:
	dh $@ $(_dhopts)

binary: binary-arch binary-indep
binary-arch binary-indep: install

override_dh_shlibdeps:
	dh_shlibdeps $(_shlibdeps)

override_dh_auto_build:
	cp libtool.new libtool
	cp libtool.new debian/build/libtool
	chmod +x libtool debian/build/libtool
	dh_auto_build

ifneq ($(USE_BUILD_DIR),TRUE)
include debian/builddir.mk
else

override_dh_auto_configure:
	autoreconf -fi
	dh_auto_configure -- $(_configure)

override_dh_auto_test:

endif
