File: rules

package info (click to toggle)
flann 1.9.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,060 kB
  • ctags: 2,432
  • sloc: cpp: 11,724; ansic: 3,723; python: 1,005; ruby: 419; makefile: 28; sh: 5
file content (46 lines) | stat: -rwxr-xr-x 1,101 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
#!/usr/bin/make -f
#export DH_VERBOSE=1

export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow

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

DEB_BUILD_ARCH     ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)

ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel))
	export DEB_CXXFLAGS_MAINT_APPEND = --param ggc-min-expand=20
endif

CMAKE_FLAGS = \
	-DCMAKE_BUILD_TYPE:STRING=None \
	-DBUILD_MATLAB_BINDINGS:BOOL=OFF \
	-DBUILD_PYTHON_BINDINGS:BOOL=OFF \
	-DUSE_MPI:BOOL=ON \
	-DUSE_OPENMP:BOOL=ON \
	-DLIB_SUFFIX:STRING="/$(DEB_HOST_MULTIARCH)" \
	-DBUILD_TESTS:BOOL=ON \
	-DBUILD_CUDA_LIB:BOOL=OFF

%:
	dh $@ --parallel

override_dh_auto_configure:
	dh_auto_configure -- $(CMAKE_FLAGS)

override_dh_auto_test:
	# test download material from the net. Removing them.

override_dh_compress:
	dh_compress --exclude=.pdf

# Let's be smart with building doc
override_dh_auto_build-indep:
	$(MAKE) -C obj-* doc

# No tests needed for docs
override_dh_auto_test-indep:

get-orig-source:
	uscan --verbose --force-download --repack --rename