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

Last change on this file since 9213 was 9165, checked in by bird, 23 years ago

Added new tools. Restructured tools. More options. Fixes.

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