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

include /usr/share/mpi-default-dev/debian_defaults

export OMPI_MCA_orte_rsh_agent=/bin/false
export BLACS_LDFLAGS=-lblacsCinit-$(ARCH_DEFAULT_MPI_IMPL) -lblacs-$(ARCH_DEFAULT_MPI_IMPL) -lscalapack-$(ARCH_DEFAULT_MPI_IMPL)

%:
	dh $@ 

override_dh_auto_clean:
	rm -f .fortran_dependencies/dependencies.mk config-f90.h modules/elpa1.mod modules/elpa2.mod
	dh_auto_clean

override_dh_auto_configure:
	dh_auto_configure -- --with-generic-simple

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
	$(MAKE) check
endif
