#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS	= hardening=+all
# Upstream is 1999-era K&R C; GCC 15 defaults to C23 where 'bool' is a
# keyword and an empty parameter list means (void), which breaks the
# unconditional PROTO(TYPES) () macro in port.h.  Force the pre-C23
# standard that this code was written for.
export DEB_CFLAGS_MAINT_APPEND	= -Wall -pedantic -std=gnu17

override_dh_auto_build:
	$(MAKE) CC="$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)"

override_dh_auto_install:
	$(MAKE) DESTDIR=$(CURDIR)/debian/vrfy DESTBIN=/usr/bin STRIP= install

override_dh_installchangelogs:
	dh_installchangelogs RELEASE_NOTES

%:
	dh $@

# End of file
