sharedlibrary.m4 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. divert(-1)
  2. #
  3. # Copyright (c) 1999-2001, 2006 Sendmail, Inc. and its suppliers.
  4. # All rights reserved.
  5. #
  6. # By using this file, you agree to the terms and conditions set
  7. # forth in the LICENSE file which can be found at the top level of
  8. # the sendmail distribution.
  9. #
  10. #
  11. # Definitions for Makefile construction for sendmail
  12. #
  13. # $Id: sharedlibrary.m4,v 1.1 2014/09/16 19:54:29 jca Exp $
  14. #
  15. divert(0)dnl
  16. include(confBUILDTOOLSDIR`/M4/'bldM4_TYPE_DIR`/links.m4')dnl
  17. bldLIST_PUSH_ITEM(`bldC_PRODUCTS', bldCURRENT_PRODUCT)dnl
  18. bldPUSH_TARGET(bldCURRENT_PRODUCT.so.${MILTER_SOVER})dnl
  19. bldPUSH_INSTALL_TARGET(`install-'bldCURRENT_PRODUCT)dnl
  20. bldPUSH_CLEAN_TARGET(bldCURRENT_PRODUCT`-clean')dnl
  21. include(confBUILDTOOLSDIR`/M4/'bldM4_TYPE_DIR`/defines.m4')
  22. divert(bldTARGETS_SECTION)
  23. bldCURRENT_PRODUCT.so.${MILTER_SOVER}: ${BEFORE} ${bldCURRENT_PRODUCT`OBJS'}
  24. ${LD} ${LDOPTS_SO} -o bldCURRENT_PRODUCT.so.${MILTER_SOVER} ${bldCURRENT_PRODUCT`OBJS'}
  25. ifdef(`bldLINK_SOURCES', `bldMAKE_SOURCE_LINKS(bldLINK_SOURCES)')
  26. install-`'bldCURRENT_PRODUCT: bldCURRENT_PRODUCT.so.${MILTER_SOVER}
  27. ifdef(`bldINSTALLABLE', ` ${INSTALL} -c -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} bldCURRENT_PRODUCT.so.${MILTER_SOVER} ${DESTDIR}${LIBDIR}/bldCURRENT_PRODUCT.so.${MILTER_SOVER}')
  28. bldCURRENT_PRODUCT-clean:
  29. rm -f ${OBJS} bldCURRENT_PRODUCT.so ${MANPAGES}
  30. divert(0)
  31. COPTS+= confCCOPTS_SO