File: rules

package info (click to toggle)
ucx 1.18.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 19,248 kB
  • sloc: ansic: 153,069; cpp: 71,668; sh: 11,380; java: 2,962; makefile: 1,935; asm: 297; xml: 51
file content (71 lines) | stat: -rwxr-xr-x 1,789 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
LIBDIR:=/usr/lib/$(DEB_HOST_MULTIARCH)

include /usr/share/mpi-default-dev/debian_defaults
MPI:=$(LIBDIR)/$(ARCH_DEFAULT_MPI_IMPL)

export HIPCXX=clang++-19

export MPICC=mpicc

ARCH_HIP:= amd64 arm64 ppc64el
HIP:= $(if $(filter $(DEB_TARGET_ARCH), $(ARCH_HIP)),--with-rocm=/usr,)

%:
	dh $@ 

# No ibverbs support available on kFreeBSD, Hurd
NO_VERBS_ARCH:= hurd-amd64 s390x
NO_JAVA_ARCH:= 
NO_NUMA_ARCH:= 

VERBS:=   $(if $(filter $(DEB_TARGET_ARCH), $(NO_VERBS_ARCH)), , --with-verbs )
NUMA:=   $(if $(filter $(DEB_TARGET_ARCH), $(NO_NUMA_ARCH)),  --disable-numa , )
ifeq ($(filter stage1,$(DEB_BUILD_PROFILES)),)
       JAVA := $(if $(filter $(DEB_TARGET_ARCH), $(NO_JAVA_ARCH)), \
                 ,--with-jdk-dir=/usr/lib/jvm/default-java --with-java=/usr/lib/jvm/default-java )
endif


override_dh_auto_configure:
	CPPFLAGS="-I/usr/include/hsa -I/usr/include/hip" dh_auto_configure --  \
		--enable-mt \
		--with-mpi=/usr \
		$(VERBS) \
		$(NUMA) \
		$(HIP) \
		--with-go=yes \
		--with-mad=yes \
		--enable-backtrace-detail \
		--enable-logging \
		--enable-devel-headers \
		--enable-examples \
		--enable-cma \
		--enable-lcov \
		--enable-profiling \
               --enable-rc \
               --enable-dc \
               --enable-ud \
               --with-mlx5-dv \
               --enable-dm

override_dh_auto_clean:
	dh_auto_clean
	find  . -type l -delete
	rm -f config.log

override_dh_shlibdeps:
	dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info

override_dh_auto_install:
	dh_auto_install
	chrpath -d debian/tmp/usr/lib/*/lib*.so.0*

override_dh_dwz:
	@echo "pass; dwz currently breaks"