File: rules

package info (click to toggle)
ga 5.7.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 19,860 kB
  • sloc: ansic: 212,496; fortran: 50,961; f90: 11,218; cpp: 8,654; makefile: 2,480; python: 1,734; sh: 1,655; perl: 534; asm: 395; csh: 165
file content (31 lines) | stat: -rwxr-xr-x 846 bytes parent folder | download
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
#!/usr/bin/make -f

CFLAGS=-g -O2

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

%:
	dh $@ --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- 				\
		--enable-cxx 				\
		--with-tcgmsg				\
		--with-scalapack="-lscalapack-$(ARCH_DEFAULT_MPI_IMPL)" \
		--with-blas4=-lopenblas			\
		--with-lapack=-lopenblas		\
		--with-mpi				\
		--with-armci=/usr

override_dh_auto_install:
	dh_auto_install --destdir=$(CURDIR)/debian/tmp
	rm -f $(CURDIR)/debian/tmp/usr/include/error.h
	rm -f $(CURDIR)/debian/tmp/usr/include/memcpy.h
	rm -f $(CURDIR)/debian/tmp/usr/include/scope.h
	rm -f $(CURDIR)/debian/tmp/usr/include/string-util.h
	rm -f $(CURDIR)/debian/tmp/usr/include/table.h
	
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
	-dh_auto_test -- -j1 -k ARMCI_USE_WIN_ALLOCATE=1 MPIEXEC="mpiexec -np 4"
endif