1 | # $Id: setup.optional.ilink.mk,v 1.3 2002-09-14 23:31:27 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= /NoD
|
---|
10 | _LD_EXTDIC = /NoE
|
---|
11 | _LD_PACKCODE = /Packcode
|
---|
12 | _LD_PACKDATA = /Packdata
|
---|
13 | _LD_DBGPACK = /NoDbgPack
|
---|
14 | _LD_IGNORECASE = /NoI
|
---|
15 | _LD_OLDCPP = /NoOldCPP
|
---|
16 | _LD_OPTFUNC = /NoOptfunc
|
---|
17 |
|
---|
18 | !if defined(LD_ALIGN)
|
---|
19 | _LD_ALIGN = /ALIGNMENT:$(LD_ALIGN)
|
---|
20 | !endif
|
---|
21 | !if defined(LD_NO_BASE)
|
---|
22 | _LD_BASE = /NoBase
|
---|
23 | !endif
|
---|
24 | !if defined(LD_BASE)
|
---|
25 | _LD_BASE = /Base:$(LD_BASE)
|
---|
26 | !endif
|
---|
27 | !if defined(LD_DEFAULT_LIBS) || defined(ALL_DEFAULT_LIBS)
|
---|
28 | _LD_DEFAULT_LIBS = /Def
|
---|
29 | !endif
|
---|
30 | !if defined(LD_EXTDIC)
|
---|
31 | _LD_EXTDIC = /Ext
|
---|
32 | !endif
|
---|
33 | !if defined(LD_NO_EXTDIC)
|
---|
34 | _LD_EXTDIC = /NoE
|
---|
35 | !endif
|
---|
36 | !if defined(LD_NO_PACKCODE)
|
---|
37 | _LD_PACKCODE = /NoPackcode
|
---|
38 | !endif
|
---|
39 | !if defined(LD_PACKCODE)
|
---|
40 | _LD_PACKCODE = /Packcode
|
---|
41 | !endif
|
---|
42 | !if defined(LD_NO_PACKDATA)
|
---|
43 | _LD_PACKDATA = /NoPackdata
|
---|
44 | !endif
|
---|
45 | !if defined(LD_PACKDATA)
|
---|
46 | _LD_PACKDATA = /Packdata
|
---|
47 | !endif
|
---|
48 | !if defined(LD_NO_DBGPACK)
|
---|
49 | _LD_DBGPACK = /NoPackcode
|
---|
50 | !endif
|
---|
51 | !if defined(LD_DBGPACK)
|
---|
52 | _LD_DBGPACK = /Packcode
|
---|
53 | !endif
|
---|
54 | !if defined(LD_IGNORECASE) || defined(ALL_IGNORECASE)
|
---|
55 | _LD_IGNORECASE = /Ig
|
---|
56 | !endif
|
---|
57 | !if defined(LD_NO_IGNORECASE) || defined(ALL_NO_IGNORECASE)
|
---|
58 | _LD_IGNORECASE = /NoI
|
---|
59 | !endif
|
---|
60 | !if defined(LD_OLDCPP)
|
---|
61 | _LD_OLDCPP = /OldCPP
|
---|
62 | !endif
|
---|
63 | !if defined(LD_NO_OLDCPP)
|
---|
64 | _LD_OLDCPP = /NoOldCPP
|
---|
65 | !endif
|
---|
66 | !if defined(LD_OPTFUNC)
|
---|
67 | _LD_OPTFUNC = /Optfunc
|
---|
68 | !endif
|
---|
69 | !if defined(LD_NO_OPTFUNC)
|
---|
70 | _LD_OPTFUNC = /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 |
|
---|