source: trunk/make/setup.optional.wlink.mk@ 9211

Last change on this file since 9211 was 9176, checked in by bird, 23 years ago

Corrected typo.

File size: 2.8 KB
RevLine 
[9176]1# $Id: setup.optional.wlink.mk,v 1.5 2002-08-30 18:57:13 bird Exp $
[9153]2
3#
4# Helper file for all the optional stuff which is common for
5# all watcom11xx compilers.
6# Concidering the size of this, it really make sense putting it here.
7#
8
9
10#
11# Linker/defconvert flags.
12#
13_LD_FORMAT = $(BUILD_PLATFORM)
14_LD_SORT = Sort global
15# Option
16_LD_QUIET =
17_LD_DEFAULT_LIBS= ,nodefaultlibs
18_LD_ALIGN =
19_LD_DOSSEG = ,dosseg
20_LD_BASE =
21_LD_PACKCODE =
22_LD_PACKDATA =
23_LD_IGNORECASE = ,caseexact
[9169]24_LD_CACHE = ,cache
[9153]25
26
27
28!ifdef LD_FORMAT
29! if "$(LD_FORMAT)" == "NE"
[9170]30_LD_FORMAT = $(BUILD_PLATFORM)-16
[9176]31TOOL_STRIP =
[9153]32! else
33! if "$(LD_FORMAT)" == "LX"
[9170]34_LD_FORMAT = os2
[9153]35! else
36! error error: LD_FORMAT other than NE and LX is not supported by this compiler ($(ENV_NAME)).
37! endif
38! endif
39!endif
40
41!if defined(LD_SORT_GLOBAL)
42_LD_SORT = Sort global
43!endif
44!if defined(LD_SORT_ALPHABETICAL)
45_LD_SORT = Sort alphabetical
46!endif
47!if defined(LD_SORT_BOTH)
48_LD_SORT = Sort global alphabetical
49!endif
50
51# Option
52!if defined(BUILD_QUIET)
53_LD_QUIET = ,quiet
54!endif
55!if defined(LD_ALIGN)
56_LD_ALIGN = ,alignment=$(LD_ALIGN)
57!endif
58!if defined(LD_DEFAULT_LIBS) || defined(ALL_DEFAULT_LIBS)
59_LD_DEFAULT_LIBS =
60!endif
61!if defined(LD_NO_DOSSEG)
62_LD_DOSSEG =
63!endif
64!if defined(LD_DOSSEG)
65_LD_DOSSEG = ,dosseg
66!endif
67!if defined(LD_NO_BASE)
68_LD_BASE =
69!endif
70!if defined(LD_BASE)
71_LD_BASE = offset=$(LD_BASE)
72!endif
73!if defined(LD_NO_PACKCODE)
74_LD_PACKCODE =
75!endif
76!if defined(LD_PACKCODE)
77_LD_PACKCODE = ,packcode=$(LD_PACKCODE)
78!endif
79!if defined(LD_NO_PACKDATA)
80_LD_PACKDATA =
81!endif
82!if defined(LD_PACKDATA)
83_LD_PACKDATA = ,packdata=$(LD_PACKDATA)
84!endif
85!if defined(LD_IGNORECASE) || defined(ALL_IGNORECASE)
86_LD_IGNORECASE = ,nocaseexact
87!endif
88!if defined(LD_NO_IGNORECASE) || defined(ALL_NO_IGNORECASE)
89_LD_IGNORECASE = ,caseexact
90!endif
[9169]91!if defined(LD_CACHE)
92_LD_CACHE = ,cache
93!endif
94!if defined(LD_NO_CACHE)
95_LD_CACHE = ,nocache
96!endif
97!if defined(LD_DEF_CACHE)
98_LD_CACHE =
99!endif
[9153]100
101
[9169]102_LD_OPTIONAL = $(_LD_SORT) Option verbose $(_LD_QUIET) $(_LD_ALIGN) $(_LD_DOSSEG) $(_LD_BASE) $(_LD_PACKCODE) $(_LD_PACKDATA) $(_LD_CACHE) $(_LD_DEFAULT_LIBS)
[9153]103
[9169]104
[9153]105# assert on nonsupported options.
106!if defined(LD_EXTDIC) || defined(LD_NO_EXTDIC)
107! error error: LD_EXTDIC/LD_NO_EXTDIC is not supported by the linker (wlink).
108!endif
[9165]109# don't complain!
110#!if defined(LD_OLDCPP) || defined(LD_NO_OLDCPP)
111#! error error: LD_OLDCPP/LD_NO_OLDCPP is not supported by the linker (wlink).
112#!endif
[9153]113!if defined(LD_OPTFUNC) || defined(LD_NO_OPTFUNC)
114! error error: LD_DBGPACK/LD_NO_DBGPACK is not supported by the linker (wlink).
115!endif
116
117# assert on obsolete options.
118!if defined(LD_DOSSEG_YES) || defined(LD_DOSSEG_NO)
119! error error: LD_DOSSEG_YES/LD_DOSSEG_NO is obosolete. Use LD_DOSSEG and LD_NO_DOSSEG.
120!endif
121
Note: See TracBrowser for help on using the repository browser.