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

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: defines.m4,v 8.25 1999/11/30 04:00:59 ca Exp $
  14. #
  15. divert(0)dnl
  16. # C compiler
  17. CC= confCC
  18. CCOPTS= ifdef(`confCCOPTS', `confCCOPTS', ` ') ifdef(`confMT', ifdef(`confMTCCOPTS', `confMTCCOPTS', `'), `')
  19. # C Linker
  20. LD= ifdef(`confLD', `confLD', `confCC')
  21. LDOPTS= ifdef(`confLDOPTS', `confLDOPTS') ifdef(`confMT', ifdef(`confMTLDOPTS', `confMTLDOPTS', `'), `')
  22. LDOPTS_SO= ${LDOPTS} ifdef(`confLDOPTS_SO', `confLDOPTS_SO', `-shared')
  23. # Shell
  24. SHELL= confSHELL
  25. # use O=-O (usual) or O=-g (debugging)
  26. O= ifdef(`confOPTIMIZE', `confOPTIMIZE', `-O')
  27. # Object archiver
  28. AR=     ifdef(`confAR', `confAR', `ar')
  29. AROPTS= ifdef(`confAROPTS', `confAROPTS', `crv')
  30. # Ranlib (or echo)
  31. RANLIB= ifdef(`confRANLIB', `confRANLIB', `ranlib')
  32. RANLIBOPTS= ifdef(`confRANLIBOPTS', `confRANLIBOPTS', `')
  33. # Object stripper
  34. STRIP= ifdef(`confSTRIP', `confSTRIP', `strip')
  35. STRIPOPTS= ifdef(`confSTRIPOPTS', `confSTRIPOPTS', `')
  36. # environment definitions (e.g., -D_AIX3)
  37. ENVDEF= ifdef(`confENVDEF', `confENVDEF') ifdef(`conf_'bldCURRENT_PRD`_ENVDEF', `conf_'bldCURRENT_PRD`_ENVDEF')
  38. # location of the source directory
  39. SRCDIR= ifdef(`confSRCDIR', `confSRCDIR', `_SRC_PATH_')
  40. # include directories
  41. INCDIRS= confINCDIRS
  42. # library directories
  43. LIBDIRS=confLIBDIRS
  44. # Additional libs needed
  45. LIBADD= ifdef(`conf_'bldCURRENT_PRD`_LIBS', `conf_'bldCURRENT_PRD`_LIBS') 
  46. # libraries required on your system
  47. #  delete -l44bsd if you are not running BIND 4.9.x
  48. LIBS= ifdef(`confLIBS', `confLIBS') ${LIBADD} 
  49. # location of sendmail binary (usually /usr/sbin or /usr/lib)
  50. BINDIR= ifdef(`confMBINDIR', `confMBINDIR', `/usr/sbin')
  51. # location of "user" binaries (usually /usr/bin or /usr/ucb)
  52. UBINDIR=ifdef(`confUBINDIR', `confUBINDIR', `/usr/bin')
  53. # location of "root" binaries (usually /usr/sbin or /usr/etc)
  54. SBINDIR=ifdef(`confSBINDIR', `confSBINDIR', `/usr/sbin')
  55. # location of "libexec" binaries (usually /usr/libexec or /usr/etc)
  56. EBINDIR=ifdef(`confEBINDIR', `confEBINDIR', `/usr/libexec')
  57. # additional .c files needed
  58. SRCADD= ifdef(`confSRCADD', `confSRCADD')
  59. ifdef(`conf_'bldCURRENT_PRD`_SRCADD', `bldLIST_PUSH_ITEM(`bldSOURCES', `conf_'bldCURRENT_PRD`_SRCADD')')
  60. # additional .o files needed
  61. OBJADD= ifdef(`confOBJADD', `confOBJADD')
  62. bldCURRENT_PRODUCT`OBJADD'= ifdef(`conf_'bldCURRENT_PRD`_OBJADD', `conf_'bldCURRENT_PRD`_OBJADD') ifdef(`confLIBADD', `bldADD_EXTENSIONS(`a', confLIBADD)', `') 
  63. # copy files
  64. CP= ifdef(`confCOPY', `confCOPY', `cp')
  65. ###################  end of user configuration flags  ######################
  66. BUILDBIN=confBUILDBIN
  67. COPTS= -I. ${INCDIRS} ${ENVDEF} ${CCOPTS}
  68. CFLAGS= $O ${COPTS} ifdef(`confMT', ifdef(`confMTCFLAGS', `confMTCFLAGS -DXP_MT', `-DXP_MT'), `')
  69. BEFORE= confBEFORE
  70. LINKS=ifdef(`bldLINK_SOURCES', `bldLINK_SOURCES', `')
  71. bldCURRENT_PRODUCT`SRCS'= bldSOURCES ${SRCADD}
  72. bldCURRENT_PRODUCT`OBJS'= bldSUBST_EXTENSIONS(`o', bldSOURCES) ifdef(`bldLINK_SOURCES', `bldSUBST_EXTENSIONS(`o', bldLINK_SOURCES)') ${OBJADD} ${bldCURRENT_PRODUCT`OBJADD'}
  73. bldCURRENT_PRODUCT`SMDEPLIBS'= ifdef(`bldSMDEPLIBS', `bldSMDEPLIBS', `')
  74. bldCURRENT_PRODUCT`TARGET_LINKS'= ifdef(`bldTARGET_LINKS', `bldTARGET_LINKS', `')
  75. bldPUSH_ALL_SRCS(bldCURRENT_PRODUCT`SRCS')dnl
  76. ifdef(`bldBIN_TYPE', , `define(`bldBIN_TYPE', `U')')dnl
  77. ifdef(`bldINSTALL_DIR', , `define(`bldINSTALL_DIR', `U')')dnl
  78. NROFF= ifdef(`confNROFF', `confNROFF', `groff -Tascii')
  79. MANDOC= ifdef(`confMANDOC', `confMANDOC', `-man')
  80. INSTALL=ifdef(`confINSTALL', `confINSTALL', `install')
  81. # User binary ownership/permissions
  82. UBINOWN=ifdef(`confUBINOWN', `confUBINOWN', `bin')
  83. UBINGRP=ifdef(`confUBINGRP', `confUBINGRP', `bin')
  84. UBINMODE=ifdef(`confSBINMODE', `confSBINMODE', `555')
  85. # Setuid binary ownership/permissions
  86. SBINOWN=ifdef(`confSBINOWN', `confSBINOWN', `root')
  87. SBINGRP=ifdef(`confSBINGRP', `confSBINGRP', `bin')
  88. SBINMODE=ifdef(`confSBINMODE', `confSBINMODE', `4555')