File: rules

package info (click to toggle)
flann 1.9.2%2Bdfsg-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 81,644 kB
  • sloc: cpp: 13,643; python: 1,046; ruby: 419; ansic: 87; makefile: 22; sh: 5
file content (32 lines) | stat: -rwxr-xr-x 640 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
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow

ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel))
	export DEB_CXXFLAGS_MAINT_APPEND = -g1
override_dh_dwz:
endif

CMAKE_FLAGS = \
	-DBUILD_MATLAB_BINDINGS=OFF \
	-DBUILD_PYTHON_BINDINGS=OFF \
	-DUSE_MPI=ON \
	-DUSE_OPENMP=ON \
	-DBUILD_TESTS=ON \
	-DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)" \
	-DBUILD_CUDA_LIB=OFF

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(CMAKE_FLAGS)

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

override_dh_compress:
	dh_compress --exclude=.pdf

execute_after_dh_auto_build:
	$(MAKE) -C obj-* doc