1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
#!/usr/bin/make -f
# -*- makefile -*-
#export DH_VERBOSE=1
export CC=mpicxx
export BOOST_TOP_DIR=/usr/
export BOOST_INC_DIR=/usr/include/mpi
export OPENBLAS_TOP_DIR=/usr/lib/openblas-base/
export OPENBLAS_LIB_DIR=/usr/lib/openblas-base
export LIBSBASE=-lstdc++ -lm -lpthread -lgomp -L/usr/lib/lapack/ -llapacke -lmpi -lmpi_cxx
export OMPI_MCA_orte_rsh_agent=/bin/false
COMPILER_FLAGS = -g -Wall -fopenmp
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
COMPILER_FLAGS += -O0
else
COMPILER_FLAGS += -O2
endif
export CFLAGS=$(COMPILER_FLAGS)
%:
dh $@
override_dh_auto_clean:
(cd src; make -f Makefile_GNU clean)
rm -f test/temp.dat
override_dh_auto_build:
(cd src; make -f Makefile_GNU)
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
(cd test; ruby Test_Of_MolDS.rb 2>&1 | grep -v Detect.OpenMP.Loop)
endif
|