switch.m4
上传用户:xu_441
上传日期:2007-01-04
资源大小:1640k
文件大小:2k
源码类别:

Email客户端

开发平台:

Unix_Linux

  1. divert(-1)
  2. #
  3. # Copyright (c) 1999 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: switch.m4,v 8.13 1999/09/07 17:21:50 ca Exp $
  14. #
  15. divert(0)dnl
  16. include(confBUILDTOOLSDIR`/M4/string.m4')dnl
  17. include(confBUILDTOOLSDIR`/M4/list.m4')dnl
  18. include(confBUILDTOOLSDIR`/M4/subst_ext.m4')dnl
  19. define(`bldDEPENDENCY_SECTION', `3')dnl
  20. define(`bldTARGETS_SECTION', `6')dnl
  21. define(`bldPUSH_TARGET',
  22. `bldLIST_PUSH_ITEM(`bldTARGETS', `$1')'dnl
  23. )dnl
  24. define(`bldPUSH_INSTALL_TARGET',
  25. `bldLIST_PUSH_ITEM(`bldINSTALL_TARGETS', `$1')'dnl
  26. )dnl
  27. define(`bldPUSH_CLEAN_TARGET',
  28. `bldLIST_PUSH_ITEM(`bldCLEAN_TARGETS', `$1')'dnl
  29. )dnl
  30. define(`bldPUSH_ALL_SRCS',
  31. `bldLIST_PUSH_ITEM(`bldALL_SRCS', `$1')'dnl
  32. )dnl
  33. define(`bldPUSH_SMDEPLIB',
  34. `bldLIST_PUSH_ITEM(`bldSMDEPLIBS', `$1')'dnl
  35. )dnl
  36. define(`bldPUSH_SMLIB',
  37. `bldPUSH_TARGET(`../lib$1/lib$1.a')
  38. bldPUSH_SMDEPLIB(`../lib$1/lib$1.a')
  39. PREPENDDEF(`confLIBDIRS', `-L../lib$1')
  40. PREPENDDEF(`confLIBS', `-l$1')
  41. divert(bldTARGETS_SECTION)
  42. ../lib$1/lib$1.a:
  43. (cd ${SRCDIR}/lib$1; sh Build ${SENDMAIL_BUILD_FLAGS})
  44. divert
  45. ')dnl
  46. define(`bldPUSH_STRIP_TARGET',
  47. `bldLIST_PUSH_ITEM(`bldSTRIP_TARGETS', `$1')'dnl
  48. )dnl
  49. define(`bldPRODUCT_START',
  50. `define(`bldCURRENT_PRODUCT', `$2')dnl
  51. define(`bldCURRENT_PRD', translit(`$2', `.', `_'))dnl
  52. define(`bldPRODUCT_TYPE', `$1')dnl'
  53. )dnl
  54. define(`bldM4_TYPE_DIR',ifdef(`confNT', `NT', ``UNIX''))dnl
  55. define(`bldPRODUCT_END',
  56. `include(confBUILDTOOLSDIR`/M4/'bldM4_TYPE_DIR`/'bldPRODUCT_TYPE`.m4')'
  57. )dnl
  58. define(`bldFINISH', 
  59. ifdef(`bldDONT_INCLUDE_ALL', ,``include(confBUILDTOOLSDIR`/M4/'bldM4_TYPE_DIR`/all.m4')'')dnl
  60. undivert(bldTARGETS_SECTION)dnl
  61. )dnl