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