File: rules

package info (click to toggle)
ga 5.4~beta~r10636%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 44,692 kB
  • ctags: 30,545
  • sloc: ansic: 197,966; fortran: 51,579; cpp: 14,255; sh: 11,487; f90: 11,218; python: 5,065; makefile: 2,848; perl: 496; asm: 395; csh: 165
file content (29 lines) | stat: -rwxr-xr-x 769 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
#!/usr/bin/make -f

CFLAGS=-g -O2

%:
	dh $@ 

override_dh_auto_configure:
	dh_auto_configure -- 				\
		--enable-cxx 				\
		--with-tcgmsg				\
		--with-scalapack="-lscalapack-openmpi -lblacs-openmpi" \
		--with-blas=-lblas 			\
		--with-lapack=-llapack			\
		--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 || cat test-suite.log
endif