#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

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

%:
	dh $@

# nat is ancient K&R-style C. GCC 15 defaults to -std=gnu23 where a
# declaration like "f()" means f(void), which breaks the old code that uses
# "()" for an unspecified argument list. Compile in gnu89 mode to restore
# pre-C99 semantics. CFLAGS1 is the upstream Makefile's compile-flag bucket.
override_dh_auto_build:
	dh_auto_build -- CFLAGS1="-DSTEPPING -DSCANNER -DVERBOSE -std=gnu89"

override_dh_auto_install:
	dh_auto_install
	install -m 755 nat $(CURDIR)/debian/smb-nat/usr/bin/smb-nat
