File: rules

package info (click to toggle)
rocm-core 6.4.4-1~exp6
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 264 kB
  • sloc: cpp: 139; sh: 130; python: 123; makefile: 11
file content (17 lines) | stat: -rwxr-xr-x 437 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# ROCM_VERSION is required to encode the version that librocm-core returns
CMAKE_FLAGS = \
	-DCMAKE_VERBOSE_MAKEFILE=1 \
	-DCPACK_DEB_COMPONENT_INSTALL=OFF \
	-DCPACK_RPM_COMPONENT_INSTALL=OFF \
	-DDISABLE_CPACK=ON \
	-DROCM_VERSION="$(shell dpkg-parsechangelog -S Version | sed 's/-.*//')"

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(CMAKE_FLAGS)