#!/usr/bin/make -f include /usr/share/dpkg/architecture.mk export DH_VERBOSE = 1 # libs having "install_h" target to install headers: libs_headers := \ libcryptoutil \ pkcs11 \ # All libraries to build and to package. # Order is important: libs := $(libs_headers) \ unpack: unpack-stamp unpack-stamp: dh_testdir dh_illumos_gate --build \ $(libs:%=usr/src/lib/%) \ usr/src/common/bignum \ usr/src/common/crypto \ usr/src/common/mpi \ usr/src/man/man*/*pkcs11* \ usr/src/man/man3ext/SUNW_C_GetMechSession.3ext # Not used and buggy: echo > usr/src/Makefile.msg.targ touch $@ patch: patch-stamp patch-stamp: unpack-stamp dh_testdir [ ! -f debian/patches/series ] || QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2 touch $@ unpatch: dh_testdir [ ! -f debian/patches/series ] || QUILT_PATCHES=debian/patches quilt pop -a -f || test $$? = 2 rm -f patch-stamp dirs-stamp: . usr/env.sh; mkdir -p \ debian/tmp/usr/include \ debian/tmp/usr/include/security \ debian/tmp$$DEB_LIBDIR_32 \ debian/tmp$$DEB_LIBDIR_64 \ debian/tmp$$DEB_USRLIBDIR_32 \ debian/tmp$$DEB_USRLIBDIR_64 \ debian/tmp$$DEB_USRLIBDIR_32/security \ debian/tmp$$DEB_USRLIBDIR_64/security touch $@ headers-stamp: patch-stamp dirs-stamp dh_illumos_make -t install_h $(libs:%=usr/src/lib/%) touch $@ install build build-arch build-indep: build-stamp build-stamp: patch-stamp dirs-stamp headers-stamp : # dh_illumos_make $(libs:%=usr/src/lib/%) dh_illumos_make \ usr/src/lib/libcryptoutil \ usr/src/lib/pkcs11 touch $@ binary binary-arch binary-indep: binary-stamp binary-stamp: build-stamp dh_testdir dh_testroot dh_installdirs dh_install --list-missing dh_strip dh_installman dh_installdocs dh_installexamples dh_installchangelogs dh_link dh_compress dh_fixperms dh_makeshlibs -- -c4 dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb touch $@ clean: unpatch dh_testdir dh_testroot dh_clean rm -rf usr .pc