File: rules

package info (click to toggle)
clblas 2.12-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 11,988 kB
  • sloc: cpp: 94,637; ansic: 71,769; lisp: 32,531; python: 2,694; sh: 279; makefile: 43
file content (47 lines) | stat: -rwxr-xr-x 1,145 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
#!/usr/bin/make -f
# -*- makefile -*-

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
export DEB_CXXFLAGS_MAINT_APPEND = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

# Fixes FTBFS on mips64* architectures. See #805893.
DEB_HOST_ARCH := $(shell dpkg-architecture --query DEB_HOST_ARCH)
ifneq (,$(filter mips64%,$(DEB_HOST_ARCH)))
DEB_CFLAGS_MAINT_APPEND += -mxgot
DEB_CXXFLAGS_MAINT_APPEND += -mxgot
endif

export BUILD_OPTIONS = \
	-DBUILD_CLIENT=ON \
	-DBUILD_KTEST=OFF \
	-DBUILD_PERFORMANCE=OFF \
	-DBUILD_RUNTIME=ON \
	-DBUILD_SAMPLE=OFF \
	-DBUILD_SHARED_LIBS=ON \
	-DBUILD_TEST=OFF \
	-DSUFFIX_LIB="/$(DEB_TARGET_MULTIARCH)"

%:
	dh $@ --sourcedirectory=src

override_dh_auto_clean:
	dh_auto_clean
	find . -name "*.pyc" -delete

override_dh_auto_configure:
	dh_auto_configure -- $(BUILD_OPTIONS)

override_dh_auto_build-indep:
	cd doc && doxygen clBLAS.doxy

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

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