#! /usr/bin/make -f # -*- makefile -*- export DH_VERBOSE=1 export DEB_BUILD_MAINT_OPTIONS := hardening=+all DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk export DEB_CFLAGS_MAINT_APPEND := -Wall export DEB_LDFLAGS_MAINT_APPEND := -Wl,-z,defs CXXFLAGS += -std=gnu++98 # shared library versions, version=`ls src/.libs/lib*.so.* | \ awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` major=`ls src/.libs/lib*.so.* | \ awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` libpackage=libnewmat10ldbl %: dh $@ execute_before_dh_autoreconf: libtoolize --force --copy libtoolize --ltdl --force --copy autoheader touch NEWS ChangeLog aclocal autoconf automake --add-missing override_dh_clean: rm -rf libltdl rm -f *.lo NEWS INSTALL *~ dh_clean execute_before_dh_missing: find debian/tmp -name '*.la' -print -delete find debian/tmp -name '*.a' -print -delete debian/${libpackage}.symbols: debuild -uc -us dpkg-gensymbols -p${libpackage} -O$@ -q sed -e 's/\( [0-9\.]\+\)\-.\+$$/\1/g' -i $@