#!/usr/bin/make -f ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) conf_add := --enable-debug else conf_add := endif BUILD := DEB-BUILD DH_AUTO_OPTIONS := -v -Sautoconf -B$(BUILD) --parallel export DEB_BUILD_MAINT_OPTIONS := hardening=+all export CFLAGS := -g -D_REENTRANT \ $(shell dpkg-buildflags --get CFLAGS) \ $(shell getconf LFS_CFLAGS) export LDFLAGS := -Wl,-z,noexecstack -Wl,-z,defs -Wl,--as-needed \ $(shell dpkg-buildflags --get LDFLAGS) include /usr/share/dpkg/pkg-info.mk BUILD_DATETIME := $(shell TZ=UTC LC_ALL=C date -R -d "@${SOURCE_DATE_EPOCH}") export UCL_EXTRA_CPPFLAGS := '-DBUILD_DATETIME="$(BUILD_DATETIME)"' %: dh "$@" override_dh_auto_configure: @echo "==> Configuring UCL" dh_auto_configure $(DH_AUTO_OPTIONS) -- \ --enable-shared $(conf_add) override_dh_auto_build: @echo "==> Building UCL" dh_auto_build $(DH_AUTO_OPTIONS) override_dh_auto_clean: dh_auto_clean $(DH_AUTO_OPTIONS) override_dh_auto_install: dh_auto_install $(DH_AUTO_OPTIONS) override_dh_installchangelogs: dh_installchangelogs NEWS override_dh_makeshlibs: dh_makeshlibs -Nlibucl-dev -V