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

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

ifneq (,$(filter $(DEB_HOST_ARCH), amd64 ppc64el))
  export DEB_CFLAGS_MAINT_STRIP  = -O3
  export DEB_CFLAGS_MAINT_APPEND = -O2
endif

%:
	dh $@ --with python3 --buildsystem=autoconf

override_dh_auto_configure:
	dh_auto_configure -- --enable-python

override_dh_missing:
	dh_missing -X.la -X/pybde.a --fail-missing

override_dh_install:
	dh_install -X.la -X/pybde.a
