#!/usr/bin/make -f include /usr/share/dpkg/default.mk export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) export DEB_BUILD_MAINT_OPTIONS = hardening=+all DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk CFLAGS+=$(CPPFLAGS) CXXFLAGS+=$(CPPFLAGS) export CMAKE_OPTIONS := \ -DCMAKE_CXX_FLAGS="$(CXXFLAGS)" \ -DCMAKE_SHARED_LINKER_FLAGS_RELEASE="$(LDFLAGS)" \ -DWITH_SHARED_LIB=1 \ -DWITH_STATIC_LIB=0 \ -DWITH_PKGCONFIG_DIR=/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig %: dh $@ $(CMAKE_OPTIONS) --sourcedirectory=. override_dh_auto_configure: dh_auto_configure --sourcedirectory=. -- $(CMAKE_OPTIONS)