#!/usr/bin/make -f
# -*- Makefile -*-

export LIBDIR=/usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)/sendip
export PREFIX=/usr
# gcc-15 defaults to -std=c23, where 'bool' is a keyword, breaking
# upstream types.h ("typedef int bool"). Pin the C dialect back to gnu11
# (the dialect this package built with for years), and keep the Werror
# suite from escalating a few legacy code patterns to hard errors:
#  - gnugetopt.c uses K&R-style (old-style) function definitions
#  - gnugetopt.c:770 discards const in 'char *temp = my_index(...)'
#  - tcp.c:286 sscanf "%d" with u_int32_t (format warning class)
export DEB_CFLAGS_MAINT_APPEND := -std=gnu11 -Wno-old-style-definition -Wno-discarded-qualifiers -Wno-error=format

%:
	dh $@
