File: rules

package info (click to toggle)
btag 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 428 kB
  • sloc: cpp: 1,711; makefile: 13
file content (22 lines) | stat: -rwxr-xr-x 497 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f
# vi: ts=8 sw=8 noet

DPKG_EXPORT_BUILDFLAGS = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/buildflags.mk

# CMake doesn't use CPPFLAGS, so pass them to CFLAGS/CXXFLAGS to enable
# missing (hardening) flags
CFLAGS   += $(CPPFLAGS)
CXXFLAGS += $(CPPFLAGS)

EXTRA_CMAKE_FLAGS =
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
EXTRA_CMAKE_FLAGS = -DENABLE_TESTS=1
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(EXTRA_CMAKE_FLAGS)