#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS	= hardening=+all
export DEB_CFLAGS_MAINT_APPEND	= -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

override_dh_auto_build:
	cp --archive makefile makefile.orig
	makedepend
	$(MAKE) CFLAGS="$(CFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" linux
	# Restore original; changed by makedepend
	mv makefile.orig makefile

override_dh_auto_install:
	# Skip. See debian/install

%:
	dh $@

# End of file
