File: rules

package info (click to toggle)
recastnavigation 1.6.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,928 kB
  • sloc: cpp: 50,116; ansic: 2,674; xml: 182; makefile: 16
file content (27 lines) | stat: -rwxr-xr-x 755 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
#!/usr/bin/make -f

# Uncomment to view all compilation commands and fix W-compiler-flags-hidden
export VERBOSE=1

# Add hardening
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/architecture.mk
ifeq ($(origin CC),default)
        CC = $(DEB_HOST_GNU_TYPE)-gcc
endif

# Use this variable to allow options passed to cmake to be overridable
DEB_CMAKE_OPTIONS ?= -DCMAKE_VERBOSE_MAKEFILE=ON \
                -DBUILD_SHARED_LIBS=ON \
                -DRECASTNAVIGATION_DEMO=OFF \
                -DRECASTNAVIGATION_TESTS=ON \
                -DRECASTNAVIGATION_EXAMPLES=OFF \
                -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON

override_dh_auto_configure:
	dh_auto_configure -- $(DEB_CMAKE_OPTIONS)


%:
	dh $@ --builddirectory=build