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)
|