[project @ 1996-11-21 16:45:53 by simonm]
[ghc.git] / ghc / mk / ghc-opts.mk
1 #-----------------------------------------------------------------------------
2 # $Id: ghc-opts.mk,v 1.2 1996/11/21 16:47:59 simonm Exp $
3
4 ifdef DoingRTS
5 GCap = -optc-DGCap
6 GC2s = -optc-DGC2s
7 GC1s = -optc-DG1s
8 endif
9
10 GHC_OPTS_norm=-O $(GCap)
11 GHC_OPTS_p =-O -prof -GPrelude $(GCap) -hisuf p_hi -hisuf-prelude p_hi
12 GHC_OPTS_t =-O -ticky -optc-DDEBUG $(GCap) -hisuf t_hi -hisuf-prelude t_hi
13 GHC_OPTS_u =-O -unregisterised ???? -ticky $(GCap) -hisuf u_hi -hisuf-prelude u_hi
14 GHC_OPTS_mc=-O -concurrent $(GCap) -hisuf mc_hi -hisuf-prelude mc_hi
15 GHC_OPTS_mr=-O -concurrent -prof -GPrelude $(GCap) -hisuf mr_hi -hisuf-prelude mr_hi
16 GHC_OPTS_mt=-O -concurrent -ticky -optc-DDEBUG $(GCap) -hisuf mt_hi -hisuf-prelude mt_hi
17 GHC_OPTS_mp=-O -parallel $(GCap) -hisuf mp_hi -hisuf-prelude mp_hi
18 GHC_OPTS_mg=-O -gransim $(GCap) -hisuf mg_hi -hisuf-prelude mg_hi
19
20 GHC_OPTS_2s=-O -gc-2s $(GC2s) -hisuf 2s_hi -hisuf-prelude 2s_hi
21 GHC_OPTS_1s=-O -gc-1s $(GC1s) -hisuf 1s_hi -hisuf-prelude 1s_hi
22 GHC_OPTS_du=-O -gc-du $(GCdu) -hisuf du_hi -hisuf-prelude du_hi
23
24 GHC_OPTS_a =-user-setup-a $(GCap) -hisuf a_hi -hisuf-prelude a_hi
25 GHC_OPTS_b =-user-setup-b $(GCap) -hisuf b_hi -hisuf-prelude b_hi
26 GHC_OPTS_c =-user-setup-c $(GCap) -hisuf c_hi -hisuf-prelude c_hi
27 GHC_OPTS_d =-user-setup-d $(GCap) -hisuf d_hi -hisuf-prelude d_hi
28 GHC_OPTS_e =-user-setup-e $(GCap) -hisuf e_hi -hisuf-prelude e_hi
29 GHC_OPTS_f =-user-setup-f $(GCap) -hisuf f_hi -hisuf-prelude f_hi
30 GHC_OPTS_g =-user-setup-g $(GCap) -hisuf g_hi -hisuf-prelude g_hi
31 GHC_OPTS_h =-user-setup-h $(GCap) -hisuf h_hi -hisuf-prelude h_hi
32 GHC_OPTS_i =-user-setup-i $(GCap) -hisuf i_hi -hisuf-prelude i_hi
33 GHC_OPTS_j =-user-setup-j $(GCap) -hisuf j_hi -hisuf-prelude j_hi
34 GHC_OPTS_k =-user-setup-k $(GCap) -hisuf k_hi -hisuf-prelude k_hi
35 GHC_OPTS_l =-user-setup-l $(GCap) -hisuf l_hi -hisuf-prelude l_hi
36 GHC_OPTS_m =-user-setup-m $(GCap) -hisuf m_hi -hisuf-prelude m_hi
37 GHC_OPTS_n =-user-setup-n $(GCap) -hisuf n_hi -hisuf-prelude n_hi
38 GHC_OPTS_o =-user-setup-o $(GCap) -hisuf o_hi -hisuf-prelude o_hi
39 GHC_OPTS_A =-user-setup-A $(GCap) -hisuf A_hi -hisuf-prelude A_hi
40 GHC_OPTS_B =-user-setup-B $(GCap) -hisuf B_hi -hisuf-prelude B_hi
41
42 # used in hslibs:
43
44 HC_OPTS_norm= $(GHC_OPTS_norm)
45 HC_OPTS_p = $(GHC_OPTS_p)
46 HC_OPTS_t = $(GHC_OPTS_t)
47 HC_OPTS_u = $(GHC_OPTS_u)
48 HC_OPTS_mc= $(GHC_OPTS_mc)
49 HC_OPTS_mr= $(GHC_OPTS_mr)
50 HC_OPTS_mt= $(GHC_OPTS_mt)
51 HC_OPTS_mp= $(GHC_OPTS_mp)
52 HC_OPTS_mg= $(GHC_OPTS_mg)
53 HC_OPTS_2s= $(GHC_OPTS_2s)
54 HC_OPTS_1s= $(GHC_OPTS_1s)
55 HC_OPTS_du= $(GHC_OPTS_du)
56 HC_OPTS_a = $(GHC_OPTS_a)
57 HC_OPTS_b = $(GHC_OPTS_b)
58 HC_OPTS_c = $(GHC_OPTS_c)
59 HC_OPTS_d = $(GHC_OPTS_d)
60 HC_OPTS_e = $(GHC_OPTS_e)
61 HC_OPTS_f = $(GHC_OPTS_f)
62 HC_OPTS_g = $(GHC_OPTS_g)
63 HC_OPTS_h = $(GHC_OPTS_h)
64 HC_OPTS_i = $(GHC_OPTS_i)
65 HC_OPTS_j = $(GHC_OPTS_j)
66 HC_OPTS_k = $(GHC_OPTS_k)
67 HC_OPTS_l = $(GHC_OPTS_l)
68 HC_OPTS_m = $(GHC_OPTS_m)
69 HC_OPTS_n = $(GHC_OPTS_n)
70 HC_OPTS_o = $(GHC_OPTS_o)
71 HC_OPTS_A = $(GHC_OPTS_A)
72 HC_OPTS_B = $(GHC_OPTS_B)
73
74 #-----------------------------------------------------------------------------
75 # Build up a list of the suffixes for which we're building
76
77 # this stuff is used by the rts and lib Makefiles.
78
79 WAY_SUFFIXES =
80
81 ifeq ($(Build_p), YES)
82 WAY_SUFFIXES += p
83 endif
84
85 ifeq ($(Build_t), YES)
86 WAY_SUFFIXES += t
87 endif
88
89 ifeq ($(Build_u), YES)
90 WAY_SUFFIXES += u
91 endif
92
93 ifeq ($(Build_mc), YES)
94 WAY_SUFFIXES += mc
95 endif
96
97 ifeq ($(Build_mr), YES)
98 WAY_SUFFIXES += mr
99 endif
100
101 ifeq ($(Build_mt), YES)
102 WAY_SUFFIXES += mt
103 endif
104
105 ifeq ($(Build_mp), YES)
106 WAY_SUFFIXES += mp
107 endif
108
109 ifeq ($(Build_mg), YES)
110 WAY_SUFFIXES += mg
111 endif
112
113 ifeq ($(Build_2s), YES)
114 WAY_SUFFIXES += 2s
115 endif
116
117 ifeq ($(Build_1s), YES)
118 WAY_SUFFIXES += 1s
119 endif
120
121 ifeq ($(Build_du), YES)
122 WAY_SUFFIXES += du
123 endif
124
125 ifeq ($(Build_a), YES)
126 WAY_SUFFIXES += a
127 endif
128
129 ifeq ($(Build_b), YES)
130 WAY_SUFFIXES += b
131 endif
132
133 ifeq ($(Build_c), YES)
134 WAY_SUFFIXES += c
135 endif
136
137 ifeq ($(Build_d), YES)
138 WAY_SUFFIXES += d
139 endif
140
141 ifeq ($(Build_e), YES)
142 WAY_SUFFIXES += e
143 endif
144
145 ifeq ($(Build_f), YES)
146 WAY_SUFFIXES += f
147 endif
148
149 ifeq ($(Build_g), YES)
150 WAY_SUFFIXES += g
151 endif
152
153 ifeq ($(Build_h), YES)
154 WAY_SUFFIXES += h
155 endif
156
157 ifeq ($(Build_i), YES)
158 WAY_SUFFIXES += i
159 endif
160
161 ifeq ($(Build_j), YES)
162 WAY_SUFFIXES += j
163 endif
164
165 ifeq ($(Build_k), YES)
166 WAY_SUFFIXES += k
167 endif
168
169 ifeq ($(Build_l), YES)
170 WAY_SUFFIXES += l
171 endif
172
173 ifeq ($(Build_m), YES)
174 WAY_SUFFIXES += m
175 endif
176
177 ifeq ($(Build_n), YES)
178 WAY_SUFFIXES += n
179 endif
180
181 ifeq ($(Build_o), YES)
182 WAY_SUFFIXES += o
183 endif
184
185 ifeq ($(Build_A), YES)
186 WAY_SUFFIXES += A
187 endif
188
189 ifeq ($(Build_B), YES)
190 WAY_SUFFIXES += B
191 endif
192