CFLAGS = -Wall -g LDFLAGS = "-Wl,--as-needed" ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif config.status: configure dh_testdir CFLAGS="$(CFLAGS)" ./configure \ --prefix=/usr \ --bindir=\$${prefix}/bin \ --build=${DEB_BUILD_GNU_TYPE} \ --host=${DEB_HOST_GNU_TYPE} \ --datadir=\$${prefix}/share \ --mandir=\$${datadir}/man \ --infodir=\$${datadir}/info \ --sysconfdir=/etc/motion \ --with-ffmpeg \ --with-mysql \ --with-pgsql \ --without-optimizecpu \ --without-jpeg-mmx touch configure-stamp