#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Fix FTBFS with GCC 15: src/execute.c (htocb/htocl/bcdtocb/bcdtocl) and
# src/endian.c (betole_*/letobe_*) define helpers as plain "inline".
# Under C99+ inline semantics no external symbol is emitted when the
# functions are not inlined (e.g. when built without -O), so linking
# fails with undefined references. GNU89 inline semantics emit the
# external definition as needed, fixing the link without changing src.
export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) -fgnu89-inline

%:
	dh $@
