File: rules

package info (click to toggle)
clsparse 0.10.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,576 kB
  • sloc: cpp: 17,137; lisp: 6,037; ansic: 742; sh: 60; makefile: 21
file content (41 lines) | stat: -rwxr-xr-x 1,045 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
#!/usr/bin/make -f

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

# Hardening options.
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# NOTE: Possible overlinkage with librt.
# See: https://github.com/clMathLibraries/clSPARSE/issues/195
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture --query DEB_HOST_MULTIARCH)

# NOTE: Testing is disabled (BUILD_TESTS is set to OFF), since it relies on
# remote content.
# See: https://github.com/clMathLibraries/clSPARSE/issues/194
BUILD_OPTIONS = \
	-DBUILD_BENCHMARKS=OFF \
	-DBUILD_SHARED_LIBS=ON \
	-DBUILD_TESTS=OFF \
	-DSUFFIX_LIB="/$(DEB_HOST_MULTIARCH)" \
	-DUSE_SYSTEM_CL2HPP=ON

%:
	dh $@ --sourcedirectory=src

override_dh_auto_configure-arch:
	dh_auto_configure -- $(BUILD_OPTIONS)

override_dh_auto_configure-indep:

override_dh_auto_build-indep:
	cd docs && doxygen Doxyfile

override_dh_installdocs-indep:
	dh_installdocs --indep
	dh_doxygen --indep

override_dh_compress-indep:
	dh_compress --indep --exclude=examples