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

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

Improved dependencies on the makefiles.

File size: 2.6 KB
RevLine 
[9243]1# $Id: setup.optional.ilink.mk,v 1.3 2002-09-14 23:31:27 bird Exp $
2MAKE_INCLUDE_CX_OPT = $(PATH_MAKE)\setup.optional.ilink.mk
[9149]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
[9151]30!if defined(LD_EXTDIC)
[9149]31_LD_EXTDIC = /Ext
32!endif
[9151]33!if defined(LD_NO_EXTDIC)
[9149]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
Note: See TracBrowser for help on using the repository browser.