#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS := hardening=+all

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

# kcc.c is written in old K&R style C (1992-1994). GCC-15 defaults to
# -std=gnu23 (C23), where 'bool' is a keyword, implicit function
# declarations and implicit int return types are hard errors, and an
# empty parameter list '()' means "no arguments", which break this old
# code. Compile in C17 mode (-std=gnu17) so the legacy code builds.
export CFLAGS := $(CFLAGS) -std=gnu17


%:
	dh $@
