File: rules

package info (click to toggle)
rocm-device-libs 5.2.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,648 kB
  • sloc: lisp: 27,709; ansic: 6,372; cpp: 89; makefile: 12
file content (19 lines) | stat: -rwxr-xr-x 486 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=-all

ifneq ($(filter $(DEB_HOST_ARCH),armel mipsel powerpc),)
CMAKEFLAGS += -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic
endif

%:
	dh $@ -Scmake

execute_before_dh_clean:
	-$(RM) -rf obj-*/

override_dh_auto_configure:
	dh_auto_configure -- $(CMAKEFLAGS)

execute_before_dh_install:
	# The directory below only contains a license file deep in the tree.
	rm -rvf $(CURDIR)/debian/rocm-device-libs/usr/share/doc/ROCm-Device-Libs