#!/usr/bin/make -f # Uncomment this to turn on verbose mode. # export DH_VERBOSE=1 export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) confflags += --build $(DEB_HOST_GNU_TYPE) else confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) endif export PROC := $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU) ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) BUILDFLAGS += OPTIMIZE=-O0 else BUILDFLAGS += OPTIMIZE=-O2 endif BUILDFLAGS += MAKECMDGOALS=dont-optimize export DEB_BUILD_MAINT_OPTIONS = hardening=+all DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk ifeq ($(DEB_HOST_ARCH_OS),linux) SIPP_CONFIG += --with-sctp endif %: dh $@ --with autoreconf override_dh_auto_configure: dh_auto_configure -- --with-pcap --with-gsl --with-rtpstream $(SIPP_CONFIG) override_dh_auto_test: