#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk

DEB_MAKE_CHECK_TARGET := check
DEB_CONFIGURE_EXTRA_FLAGS += --disable-shared --with-pic

DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
ifeq ($(DEB_HOST_ARCH),alpha)
ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
	DEB_OPT_FLAG = -O1
endif
endif

# Store build information
common-binary-post-install-arch common-binary-post-install-indep::
	dh_buildinfo
