| [9241] | 1 | # $Id: setup.optional.link.mk,v 1.2 2002-09-14 23:29:13 bird Exp $
 | 
|---|
 | 2 | MAKE_INCLUDE_LD_OPT = $(PATH_MAKE)\setup.optional.link.mk
 | 
|---|
| [9165] | 3 | 
 | 
|---|
 | 4 | #
 | 
|---|
 | 5 | # Helper file for all the option stuff for the ibm linker (ilink).
 | 
|---|
 | 6 | #
 | 
|---|
 | 7 | _LD_ALIGN       =
 | 
|---|
 | 8 | _LD_DEFAULT_LIBS= /NoD
 | 
|---|
 | 9 | _LD_EXTDIC      = /NoE
 | 
|---|
 | 10 | _LD_PACKCODE    = /Packcode
 | 
|---|
 | 11 | _LD_PACKDATA    = /Packdata
 | 
|---|
 | 12 | _LD_IGNORECASE  = /NoI
 | 
|---|
 | 13 | _LD_DOSSEG      =
 | 
|---|
 | 14 | _LD_FAR         = /Far
 | 
|---|
 | 15 | 
 | 
|---|
 | 16 | !if defined(LD_ALIGN)
 | 
|---|
 | 17 | _LD_ALIGN       = /ALIGNMENT:$(LD_ALIGN)
 | 
|---|
 | 18 | !endif
 | 
|---|
 | 19 | !if defined(LD_DEFAULT_LIBS) || defined(ALL_DEFAULT_LIBS)
 | 
|---|
 | 20 | _LD_DEFAULT_LIBS = /Def
 | 
|---|
 | 21 | !endif
 | 
|---|
 | 22 | !if defined(LD_EXTDIC)
 | 
|---|
 | 23 | _LD_EXTDIC      = /Ext
 | 
|---|
 | 24 | !endif
 | 
|---|
 | 25 | !if defined(LD_NO_EXTDIC)
 | 
|---|
 | 26 | _LD_EXTDIC      = /NoE
 | 
|---|
 | 27 | !endif
 | 
|---|
 | 28 | !if defined(LD_NO_PACKCODE)
 | 
|---|
 | 29 | _LD_PACKCODE    = /NoPackcode
 | 
|---|
 | 30 | !endif
 | 
|---|
 | 31 | !if defined(LD_PACKCODE)
 | 
|---|
| [9241] | 32 | ! if "$(LD_PACKCODE)" == ""
 | 
|---|
 | 33 | _LD_PACKCODE    = /Packcode
 | 
|---|
 | 34 | ! else
 | 
|---|
| [9165] | 35 | _LD_PACKCODE    = /Packcode:$(LD_PACKCODE)
 | 
|---|
| [9241] | 36 | ! endif
 | 
|---|
| [9165] | 37 | !endif
 | 
|---|
 | 38 | !if defined(LD_NO_PACKDATA)
 | 
|---|
 | 39 | _LD_PACKDATA    = /NoPackdata
 | 
|---|
 | 40 | !endif
 | 
|---|
 | 41 | !if defined(LD_PACKDATA)
 | 
|---|
| [9241] | 42 | ! if "$(LD_PACKDATA)" == ""
 | 
|---|
 | 43 | _LD_PACKDATA    = /Packdata
 | 
|---|
 | 44 | ! else
 | 
|---|
| [9165] | 45 | _LD_PACKDATA    = /Packdata:$(LD_PACKDATA)
 | 
|---|
| [9241] | 46 | ! endif
 | 
|---|
| [9165] | 47 | !endif
 | 
|---|
 | 48 | !if defined(LD_IGNORECASE) || defined(ALL_IGNORECASE)
 | 
|---|
| [9241] | 49 | _LD_IGNORECASE  =
 | 
|---|
| [9165] | 50 | !endif
 | 
|---|
 | 51 | !if defined(LD_NO_IGNORECASE) || defined(ALL_NO_IGNORECASE)
 | 
|---|
| [9241] | 52 | _LD_IGNORECASE  = /noignorecase
 | 
|---|
| [9165] | 53 | !endif
 | 
|---|
 | 54 | !ifdef LD_NO_DOSSEG
 | 
|---|
 | 55 | _LD_DOSSEG      =
 | 
|---|
 | 56 | !endif
 | 
|---|
 | 57 | !ifdef LD_DOSSEG
 | 
|---|
 | 58 | _LD_DOSSEG      = /DOSSEG
 | 
|---|
 | 59 | !endif
 | 
|---|
 | 60 | !ifdef LD_NO_FAR
 | 
|---|
 | 61 | _LD_FAR         =
 | 
|---|
 | 62 | !endif
 | 
|---|
 | 63 | !ifdef LD_FAR
 | 
|---|
 | 64 | _LD_FAR         = /FAR
 | 
|---|
 | 65 | !endif
 | 
|---|
 | 66 | 
 | 
|---|
 | 67 | 
 | 
|---|
| [9241] | 68 | _LD_OPTIONAL = $(_LD_DEFAULT_LIBS) $(_LD_EXTDIC) $(_LD_IGNORECASE) $(_LD_DOSSEG) $(_LD_FAR) $(_LD_PACKCODE) $(_LD_PACKDATA) $(_LD_ALIGN)
 | 
|---|
| [9165] | 69 | 
 | 
|---|
 | 70 | #!if !$(BUILD_FORWARDING)
 | 
|---|
 | 71 | #! ifdef LD_FORMAT
 | 
|---|
 | 72 | #!  if "$(LD_FORMAT)" != "LX"
 | 
|---|
 | 73 | #!   error LD_FORMAT other than LX is not supported by this linker ($(ENV_NAME)).
 | 
|---|
 | 74 | #!  endif
 | 
|---|
 | 75 | #! endif
 | 
|---|
 | 76 | #!endif
 | 
|---|
 | 77 | 
 | 
|---|
 | 78 | 
 | 
|---|
 | 79 | # unsupported option checks.
 | 
|---|
 | 80 | !ifdef LD_SORT_BOTH
 | 
|---|
 | 81 | ! error LD_SORT_BOTH is not supported by this linker (link).
 | 
|---|
 | 82 | !endif
 | 
|---|
 | 83 | !ifdef LD_SORT_GLOBAL
 | 
|---|
 | 84 | ! error LD_SORT_GLOBAL is not supported by this linker (link).
 | 
|---|
 | 85 | !endif
 | 
|---|
 | 86 | !ifdef LD_SORT_ALPHABETICAL
 | 
|---|
 | 87 | ! error LD_SORT_ALPHABETICAL is not supported by this linker (link).
 | 
|---|
 | 88 | !endif
 | 
|---|
 | 89 | !if defined(LD_NO_DBGPACK) || defined(LD_DBGPACK)
 | 
|---|
 | 90 | ! error LD_NO_DBGPACK/LD_DBGPACK is not supported by this linker (link).
 | 
|---|
 | 91 | !endif
 | 
|---|
 | 92 | !if defined(LD_OPTFUNC) || defined(LD_NO_OPTFUNC)
 | 
|---|
 | 93 | ! error LD_NO_OPTFUNC/LD_OPTFUNC is not supported by this linker (link).
 | 
|---|
 | 94 | !endif
 | 
|---|
 | 95 | !if defined(LD_NO_BASE) || defined(LD_BASE)
 | 
|---|
 | 96 | ! error LD_BASE/LD_NO_BASE is not supported by this linker (link).
 | 
|---|
 | 97 | !endif
 | 
|---|
 | 98 | !if 0  # ignore this for the moment.
 | 
|---|
 | 99 | !if defined(LD_OLDCPP) || defined(LD_NO_OLDCPP)
 | 
|---|
 | 100 | ! error LD_OLDCPP/LD_NO_OLDCPP is not supported by this linker (link).
 | 
|---|
 | 101 | !endif
 | 
|---|
 | 102 | !endif
 | 
|---|
 | 103 | 
 | 
|---|
 | 104 | # assertions
 | 
|---|
 | 105 | !if defined(LD_DOSSEG_NO) || defined(LD_DOSSEG_YES)
 | 
|---|
 | 106 | ! error LD_DOSSEG_NO/LD_DOSSEG_YES is renamed to LD_NO_DOSSEG / LD_DOSSEG!
 | 
|---|
 | 107 | !endif
 | 
|---|
 | 108 | 
 | 
|---|