File: rules

package info (click to toggle)
rocr-runtime 5.2.3-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,120 kB
  • sloc: cpp: 67,649; ansic: 4,151; lisp: 599; sh: 73; makefile: 11
file content (16 lines) | stat: -rwxr-xr-x 401 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
ifneq (amd64,$(DEB_HOST_ARCH))
CMAKE_EXTRA_FLAGS:=-DIMAGE_SUPPORT=OFF
else
CMAKE_EXTRA_FLAGS:=
endif

%:
	dh $@ -Dsrc -Scmake

override_dh_auto_configure:
	dh_auto_configure -- \
		-DBITCODE_DIR=/usr/lib/$(DEB_HOST_MULTIARCH)/amdgcn/bitcode $(CMAKE_EXTRA_FLAGS)
# 		-DHSAKMT_INC_PATH=/usr/include/rocm
#		-DClang_DIR=/usr/lib/llvm13/