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

Last change on this file since 9156 was 9153, checked in by bird, 23 years ago

Splitted out the watcom linker into it own config files.
Option to use ilink with watcom environments.

File size: 2.5 KB
Line 
1# $Id: setup.optional.wlink.mk,v 1.1 2002-08-28 04:42:04 bird Exp $
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
24
25
26
27!ifdef LD_FORMAT
28! if "$(LD_FORMAT)" == "NE"
29_LD_FORMAT = $(BUILD_PLATFORM)-16
30! else
31! if "$(LD_FORMAT)" == "LX"
32_LD_FORMAT = os2
33! else
34! error error: LD_FORMAT other than NE and LX is not supported by this compiler ($(ENV_NAME)).
35! endif
36! endif
37!endif
38
39!if defined(LD_SORT_GLOBAL)
40_LD_SORT = Sort global
41!endif
42!if defined(LD_SORT_ALPHABETICAL)
43_LD_SORT = Sort alphabetical
44!endif
45!if defined(LD_SORT_BOTH)
46_LD_SORT = Sort global alphabetical
47!endif
48
49# Option
50!if defined(BUILD_QUIET)
51_LD_QUIET = ,quiet
52!endif
53!if defined(LD_ALIGN)
54_LD_ALIGN = ,alignment=$(LD_ALIGN)
55!endif
56!if defined(LD_DEFAULT_LIBS) || defined(ALL_DEFAULT_LIBS)
57_LD_DEFAULT_LIBS =
58!endif
59!if defined(LD_NO_DOSSEG)
60_LD_DOSSEG =
61!endif
62!if defined(LD_DOSSEG)
63_LD_DOSSEG = ,dosseg
64!endif
65!if defined(LD_NO_BASE)
66_LD_BASE =
67!endif
68!if defined(LD_BASE)
69_LD_BASE = offset=$(LD_BASE)
70!endif
71!if defined(LD_NO_PACKCODE)
72_LD_PACKCODE =
73!endif
74!if defined(LD_PACKCODE)
75_LD_PACKCODE = ,packcode=$(LD_PACKCODE)
76!endif
77!if defined(LD_NO_PACKDATA)
78_LD_PACKDATA =
79!endif
80!if defined(LD_PACKDATA)
81_LD_PACKDATA = ,packdata=$(LD_PACKDATA)
82!endif
83!if defined(LD_IGNORECASE) || defined(ALL_IGNORECASE)
84_LD_IGNORECASE = ,nocaseexact
85!endif
86!if defined(LD_NO_IGNORECASE) || defined(ALL_NO_IGNORECASE)
87_LD_IGNORECASE = ,caseexact
88!endif
89
90_LD_OPTIONAL = $(_LD_SORT) Option verbose $(_LD_QUIET) $(_LD_ALIGN) $(_LD_DOSSEG) $(_LD_BASE) $(_LD_PACKCODE) $(_LD_PACKDATA)
91
92
93# assert on nonsupported options.
94!if defined(LD_EXTDIC) || defined(LD_NO_EXTDIC)
95! error error: LD_EXTDIC/LD_NO_EXTDIC is not supported by the linker (wlink).
96!endif
97!if defined(LD_OLDCPP) || defined(LD_NO_OLDCPP)
98! error error: LD_DBGPACK/LD_NO_DBGPACK is not supported by the linker (wlink).
99!endif
100!if defined(LD_OPTFUNC) || defined(LD_NO_OPTFUNC)
101! error error: LD_DBGPACK/LD_NO_DBGPACK is not supported by the linker (wlink).
102!endif
103
104# assert on obsolete options.
105!if defined(LD_DOSSEG_YES) || defined(LD_DOSSEG_NO)
106! error error: LD_DOSSEG_YES/LD_DOSSEG_NO is obosolete. Use LD_DOSSEG and LD_NO_DOSSEG.
107!endif
108
Note: See TracBrowser for help on using the repository browser.