source: trunk/make/setup.optional.watcom11x.mk@ 8346

Last change on this file since 8346 was 8332, checked in by bird, 24 years ago

Initial config.

File size: 2.9 KB
Line 
1# $Id: setup.optional.watcom11x.mk,v 1.1 2002-04-30 06:11:23 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# C Compiler flags.
12#
13_CC_SEG_TEXT =
14_CC_SEG_DATA =
15_CC_SEG_XCPT =
16_CC_DEFAULT_LIBS = -zl
17_CC_PACK =
18_CC_MODEL = -mf
19
20!ifdef ALL_SEG_TEXT
21_CC_SEG_TEXT=-nt=$(ALL_SEG_TEXT)
22!endif
23!ifdef CC_SEG_TEXT
24_CC_SEG_TEXT=-nt=$(CC_SEG_TEXT)
25!endif
26!ifdef ALL_SEG_DATA
27_CC_SEG_DATA=-nd=$(ALL_SEG_TEXT)
28!endif
29!ifdef CC_SEG_DATA
30_CC_SEG_DATA=-nd=$(CC_SEG_TEXT)
31!endif
32!if defined(CC_DEFAULT_LIBS) || defined(ALL_DEFAULT_LIBS)
33_CC_DEFAULT_LIBS =
34!endif
35!ifdef ALL_PACK
36_CC_PACK = -zp=$(ALL_PACK)
37!endif
38!ifdef CC_PACK
39_CC_PACK = -zp=$(CC_PACK)
40!endif
41!if !defined(CC_MODEL) && defined(ALL_MODEL)
42CC_MODEL = $(ALL_MODEL)
43!endif
44!ifdef CC_MODEL
45_CC_MODEL =
46!endif
47#!if "$(CC_MODEL)" == "TINY"
48#_CC_MODEL = -mt
49#!endif
50!if "$(CC_MODEL)" == "SMALL"
51_CC_MODEL = -ms
52!endif
53!if "$(CC_MODEL)" == "COMPACT"
54_CC_MODEL = -mc
55!endif
56!if "$(CC_MODEL)" == "MEDIUM"
57_CC_MODEL = -mm
58!endif
59!if "$(CC_MODEL)" == "LARGE"
60_CC_MODEL = -ml
61!endif
62!if "$(CC_MODEL)" == "HUGE"
63_CC_MODEL = -ml
64!endif
65!if "$(_CC_MODEL)" == ""
66! error Invalid MODEL. CC_MODEL=$(CC_MODEL)
67!endif
68
69_CC_OPTIONAL = $(_CC_SEG_TEXT) $(_CC_SEG_DATA) $(_CC_SEG_XCPT) $(_CC_DEFAULT_LIBS) $(_CC_PACK) $(_CC_MODEL)
70
71
72
73#
74# C++ Compiler flags.
75#
76_CXX_SEG_TEXT =
77_CXX_SEG_DATA =
78_CXX_SEG_XCPT =
79_CXX_DEFAULT_LIBS = -zl
80_CXX_PACK =
81_CXX_XCPT = -xd
82_CXX_MODEL = -mf
83
84!ifdef ALL_SEG_TEXT
85_CXX_SEG_TEXT=-nt=$(ALL_SEG_TEXT)
86!endif
87!ifdef CXX_SEG_TEXT
88_CXX_SEG_TEXT=-nt=$(CXX_SEG_TEXT)
89!endif
90!ifdef ALL_SEG_DATA
91_CXX_SEG_DATA=-nd=$(ALL_SEG_TEXT)
92!endif
93!ifdef CXX_SEG_DATA
94_CXX_SEG_DATA=-nd=$(CXX_SEG_TEXT)
95!endif
96!ifdef ALL_SEG_XCPT
97_CXX_SEG_XCPT=
98!endif
99!ifdef CXX_SEG_XCPT
100_CXX_SEG_XCPT=
101!endif
102!if defined(CXX_DEFAULT_LIBS) || defined(ALL_DEFAULT_LIBS)
103_CXX_DEFAULT_LIBS =
104!endif
105!ifdef ALL_PACK
106_CXX_PACK = -zp=$(ALL_PACK)
107!endif
108!ifdef CXX_PACK
109_CXX_PACK = -zp=$(CXX_PACK)
110!endif
111!ifdef CXX_XCPT
112_CXX_XCPT = -xs
113!endif
114!ifdef CXX_NO_XCPT
115_CXX_XCPT = -xd
116!endif
117!if !defined(CC_MODEL) && defined(ALL_MODEL)
118CXX_MODEL = $(ALL_MODEL)
119!endif
120!ifdef CXX_MODEL
121_CXX_MODEL =
122!endif
123#!if "$(CXX_MODEL)" == "TINY"
124#_CXX_MODEL = -mt
125#!endif
126!if "$(CXX_MODEL)" == "SMALL"
127_CXX_MODEL = -ms
128!endif
129!if "$(CXX_MODEL)" == "COMPACT"
130_CXX_MODEL = -mc
131!endif
132!if "$(CXX_MODEL)" == "MEDIUM"
133_CXX_MODEL = -mm
134!endif
135!if "$(CXX_MODEL)" == "LARGE"
136_CXX_MODEL = -ml
137!endif
138!if "$(CXX_MODEL)" == "HUGE"
139_CXX_MODEL = -ml
140!endif
141!if "$(_CXX_MODEL)" == ""
142! error Invalid MODEL. CXX_MODEL=$(CXX_MODEL)
143!endif
144
145_CXX_OPTIONAL = $(_CXX_SEG_TEXT) $(_CXX_SEG_DATA) $(_CXX_SEG_XCPT) $(_CXX_DEFAULT_LIBS) $(_CXX_PACK) $(_CXX_XCPT) $(_CXX_MODEL)
146
147
Note: See TracBrowser for help on using the repository browser.