File: rules

package info (click to toggle)
parmetis 4.0.3-5
  • links: PTS, VCS
  • area: non-free
  • in suites: bullseye, buster, sid
  • size: 25,384 kB
  • ctags: 3,256
  • sloc: ansic: 41,872; makefile: 298; sh: 190; perl: 25
file content (51 lines) | stat: -rwxr-xr-x 1,690 bytes parent folder | download | duplicates (3)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/make -f
# This file is public domain.

.PHONY : build

export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

#
# do not install metis use package instead

CMAKE_OPTIONS=-DCMAKE_C_COMPILER=mpicc \
 -DCMAKE_C_FLAGS:STRING="-O3 -Wall" \
 -DCMAKE_CXX_FLAGS="-O3 -Wall" \
 -DGKLIB_PATH=../metis/GKlib \
 -DMETIS_PATH=/usr \
 -DMETIS_INSTALL:BOOL=FALSE \
 -DSHARED:BOOL=TRUE

export OMPI_MCA_plm_rsh_agent=/bin/false                #workaround to start MPI-applications in chroot

build: # Because there is a build directory in source tree.
	dh_testdir
	dh_auto_configure --buildsystem=cmake -- ${CMAKE_OPTIONS}
	dh_auto_build --buildsystem=cmake
	dh_auto_test --buildsystem=cmake

%:
	dh $@ --buildsystem=cmake --with-quilt

override_dh_auto_configure:
	dh_auto_configure -- ${CMAKE_OPTIONS}

override_dh_auto_clean:
	rm -f metis/programs/cmpfillin metis/programs/gpmetis metis/programs/graphchk \
	  metis/programs/m2gmetis metis/programs/mpmetis metis/programs/ndmetis \
	  metis/GKlib/libGKlib.* metis/libmetis/libmetis.* \
	  metis/GKlib/Makefile \
          metis/GKlib/cmake_install.cmake \
          metis/Makefile \
          metis/cmake_install.cmake \
          metis/include/CMakeFiles/CMakeDirectoryInformation.cmake \
          metis/include/CMakeFiles/progress.marks \
          metis/include/Makefile \
          metis/include/cmake_install.cmake \
          metis/libmetis/Makefile \
          metis/libmetis/cmake_install.cmake \
          metis/programs/Makefile \
          metis/programs/cmake_install.cmake \
	rm -fr metis/CMakeFiles metis/programs/CMakeFiles metis/GKlib/CMakeFiles metis/libmetis/CMakeFiles obj-*