1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
#!/usr/bin/make -f
# Uncomment below to enable verbose build messages.
#export DH_VERBOSE = 1
# Enable all build hardening flags.
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# Export the DPKG default build flags.
DPKG_EXPORT_BUILDFLAGS = 1
# Include the default build flags. <https://wiki.debian.org/Hardening#dpkg-buildflags>
include /usr/share/dpkg/buildflags.mk
# Append the CPPFLAGS to the standard CFLAGS and CXXFLAGS variables, which is how CMake likes it. <https://wiki.debian.org/Hardening#Notes_for_packages_using_CMake>
CFLAGS += $(CPPFLAGS)
CXXFLAGS += $(CPPFLAGS)
%:
# `--with kf6` does not compress index.docbook, which is how KDE likes it.
dh $@ --with kf6
|