#!/usr/bin/make -f

DPKG_EXPORT_BUILDFLAGS = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# GCC 15 默认 gnu23 下空括号 () 等价于 (void)，导致 pigpio 1.78 的无原型
# 函数指针 typedef (CBF_t/callbk_t) 调用带参报 "too many arguments"；
# 且 GCC 14+ 将 -Wincompatible-pointer-types 默认升级为 error。
# 用 -std=gnu17 恢复 C23 之前"空括号=无原型"语义，并把该诊断降回 warning 级别。
export DEB_CFLAGS_MAINT_APPEND = -Wno-format-security -std=gnu17 -Wno-error=incompatible-pointer-types

%:
	dh $@ --with python3 --parallel

override_dh_clean:
	rm -rf build
	dh_clean

