#!/usr/bin/make -f

export DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

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

# GCC 15 defaults to -std=gnu23: the legacy empty-parameter declaration
# 'int yyerror();' in grammar.y is then treated as a zero-argument prototype,
# while the bison-generated grammar.c calls yyerror("syntax error") with one
# argument, causing "error: too many arguments to function 'yyerror'".
# Pin -std=gnu17 so that '()' keeps the unspecified-parameter (K&R) semantics.
export CFLAGS := $(CFLAGS) -std=gnu17

%:
	dh $@ --with=autoreconf
