X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/6f3acea989cf8191569cc59d492722662fb25464..07184dd3deba9009e4c4391ef711a62aa57eb536:/debian/autorules.m4 diff --git a/debian/autorules.m4 b/debian/autorules.m4 index 16bb431..6b98a5c 100644 --- a/debian/autorules.m4 +++ b/debian/autorules.m4 @@ -23,6 +23,23 @@ INSTALL=install CONFIGURE=--prefix=/usr +INSTALL_DATA=$(INSTALL) -p -o root -g root -m 644 +INSTALL_PROGRAM=$(INSTALL) -p -o root -g root -m 755 +INSTALL_SCRIPT=$(INSTALL) -p -o root -g root -m 755 + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +CFLAGS=-O0 -g +else +CFLAGS=-O2 -g +endif +export CFLAGS +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) +INSTALL_PROGRAM += -s +endif +export INSTALL_DATA +export INSTALL_SCRIPT +export INSTALL_PROGRAM + m4_divert(-1)m4_dnl m4_changequote([,])