source: trunk/make/setup.optional.link.mk@ 10366

Last change on this file since 10366 was 9241, checked in by bird, 23 years ago

Corrected packdata/code. Corrected ignorecase - when we're to ignore case we don't specify anything!

File size: 2.7 KB
Line 
1# $Id: setup.optional.link.mk,v 1.2 2002-09-14 23:29:13 bird Exp $
2MAKE_INCLUDE_LD_OPT = $(PATH_MAKE)\setup.optional.link.mk
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)
32! if "$(LD_PACKCODE)" == ""
33_LD_PACKCODE = /Packcode
34! else
35_LD_PACKCODE = /Packcode:$(LD_PACKCODE)
36! endif
37!endif
38!if defined(LD_NO_PACKDATA)
39_LD_PACKDATA = /NoPackdata
40!endif
41!if defined(LD_PACKDATA)
42! if "$(LD_PACKDATA)" == ""
43_LD_PACKDATA = /Packdata
44! else
45_LD_PACKDATA = /Packdata:$(LD_PACKDATA)
46! endif
47!endif
48!if defined(LD_IGNORECASE) || defined(ALL_IGNORECASE)
49_LD_IGNORECASE =
50!endif
51!if defined(LD_NO_IGNORECASE) || defined(ALL_NO_IGNORECASE)
52_LD_IGNORECASE = /noignorecase
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
68_LD_OPTIONAL = $(_LD_DEFAULT_LIBS) $(_LD_EXTDIC) $(_LD_IGNORECASE) $(_LD_DOSSEG) $(_LD_FAR) $(_LD_PACKCODE) $(_LD_PACKDATA) $(_LD_ALIGN)
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
Note: See TracBrowser for help on using the repository browser.