[project @ 1996-01-10 12:38:57 by partain]
[ghc-hetmet.git] / ghc / runtime / Jmakefile
1 /* This is the Jmakefile for the runtime-system stuff.
2    This stuff is written in C (and cannot be written in Haskell).
3
4    Things are organised into exactly one level of subdirs.
5
6    At the moment, there are a few such subdirs:
7         c-as-asm        -- mini-interpreter & register hackery
8         gum             -- GUM-specific stuff
9         io              -- support for libPOSIX
10         main            -- "main", associated startup stuff, & MISC things
11         prims           -- code for primitives that must be written in C
12         profiling       -- cost-centre profiling
13         storage         -- the storage manager(s)
14
15    We create two libraries.  One, libHSrts<tag>.a, is built separately
16    for each "build".  The other, libHSclib.a is built once: it is just
17    .lc files that end up the same no matter what, i.e. completely
18    ordinary C.
19
20    Other sorta independent, compile-once subdirs are:
21
22         gmp             -- GNU multi-precision library (for Integer)
23         regex           -- GNU regexp package
24 */
25
26 #define IHaveSubdirs
27
28 SUBDIRS = gmp regex
29
30 /****************************************************************
31 *                                                               *
32 * Jmakefile preamble-y things                                   *
33 *                                                               *
34 ****************************************************************/
35
36 GhcDriverNeededHere(depend all) /* we use its C-compiling know-how */
37 EtagsNeededHere(tags)
38
39 /****************************************************************
40 *                                                               *
41 * options used for compiling/etc. things                        *
42 *                                                               *
43 ****************************************************************/
44
45 /*
46 If you use EXTRA_HC_OPTS on the command line (which you shouldn't,
47 strictly speaking), it will probably work -- it is pinned onto
48 GHC_OPTS, just for fun.
49 */
50
51 #if i386_TARGET_ARCH
52 # define __plat_specific -mtoggle-sp-mangling
53 #else
54 # define __plat_specific /*none*/
55 #endif
56
57 GHC_OPTS = -O2-for-C -optc-DFORCE_GC \
58            __plat_specific $(EXTRA_HC_OPTS)
59
60 /* per-build options: shared with libraries */
61 #define rts_or_lib(r,l) r
62 #include "../mkworld/GHC_OPTS"
63
64 MKDEPENDC_OPTS= \
65         -I$(TOP_PWD)/$(CURRENT_DIR)/$(GHC_INCLUDES)
66
67 /****************************************************************
68 *                                                               *
69 * what it is we are compiling;                                  *
70 *   these are long and tedious lists, but c'est la guerre       *
71 *                                                               *
72 ****************************************************************/
73
74 RTS_LH =                                \
75         storage/SMmarkDefs.lh           \
76         storage/SMcopying.lh            \
77         storage/SMcompacting.lh         \
78         storage/SMextn.lh               \
79         storage/SMinternal.lh
80
81 RTS_LC =                                \
82         c-as-asm/CallWrap_C.lc          \
83         c-as-asm/FreeMallocPtr.lc       \
84         c-as-asm/HpOverflow.lc          \
85         c-as-asm/StablePtr.lc           \
86         c-as-asm/StablePtrOps.lc        \
87         c-as-asm/StgDebug.lc            \
88         c-as-asm/StgMiniInt.lc          \
89         gum/GlobAddr.lc                 \
90         gum/HLComms.lc                  \
91         gum/Hash.lc                     \
92         gum/LLComms.lc                  \
93         gum/Pack.lc                     \
94         gum/ParInit.lc                  \
95         gum/RBH.lc                      \
96         gum/Sparks.lc                   \
97         gum/Unpack.lc                   \
98         main/GranSim.lc                 \
99         main/Itimer.lc                  \
100         main/RednCounts.lc              \
101         main/SMRep.lc                   \
102         main/Select.lc                  \
103         main/Signals.lc                 \
104         main/StgOverflow.lc             \
105         main/StgTrace.lc                \
106         main/Threads.lc                 \
107         main/main.lc                    \
108         prims/PrimArith.lc              \
109         prims/PrimMisc.lc               \
110         profiling/CostCentre.lc         \
111         profiling/Hashing.lc            \
112         profiling/HeapProfile.lc        \
113         profiling/Indexing.lc           \
114         profiling/LifeProfile.lc        \
115         profiling/Timer.lc              \
116         storage/Force_GC.lc             \
117         storage/SM1s.lc                 \
118         storage/SM2s.lc                 \
119         storage/SMap.lc                 \
120         storage/SMcheck.lc              \
121         storage/SMcompacting.lc         \
122         storage/SMcopying.lc            \
123         storage/SMdu.lc                 \
124         storage/SMevac.lc               \
125         storage/SMextn.lc               \
126         storage/SMinit.lc /*could clib except for GCdu option! */ \
127         storage/SMmarking.lc            \
128         storage/SMscan.lc               \
129         storage/SMscav.lc               \
130         storage/SMstacks.lc             \
131         storage/SMstatic.lc             \
132         storage/SMstats.lc /*could clib except GCap affects printing*/ \
133         storage/mprotect.lc
134
135 /*LATER?: storage/SMgen.lc */
136
137 RTS_LHC =                               \
138         main/StgStartup.lhc             \
139         main/StgUpdate.lhc              \
140         main/StgThreads.lhc             \
141         c-as-asm/PerformIO.lhc          \
142         storage/SMmark.lhc              \
143         gum/FetchMe.lhc
144
145 #if GhcWithReadline == YES
146 # define __readline_cfile io/ghcReadline.lc
147 #else
148 # define __readline_cfile /*none*/
149 #endif
150
151 CLIB_LC =                               \
152         hooks/ErrorHdr.lc               \
153         hooks/OutOfHeap.lc              \
154         hooks/OutOfStk.lc               \
155         hooks/OutOfVM.lc                \
156         hooks/PatErrorHdr.lc            \
157         hooks/TraceHooks.lc             \
158         hooks/SizeHooks.lc              \
159         io/closeFile.lc                 \
160         io/createDirectory.lc           \
161         io/env.lc                       \
162         io/errno.lc                     \
163         io/execvpe.lc                   \
164         io/fileEOF.lc                   \
165         io/fileGetc.lc                  \
166         io/fileLookAhead.lc             \
167         io/filePosn.lc                  \
168         io/filePutc.lc                  \
169         io/fileSize.lc                  \
170         io/flushFile.lc                 \
171         io/getBufferMode.lc             \
172         io/getCPUTime.lc                \
173         io/getClockTime.lc              \
174         io/getCurrentDirectory.lc       \
175         io/getDirectoryContents.lc      \
176         io/getLock.lc                   \
177         io/inputReady.lc                \
178         io/openFile.lc                  \
179         io/readFile.lc                  \
180         io/removeDirectory.lc           \
181         io/removeFile.lc                \
182         io/renameDirectory.lc           \
183         io/renameFile.lc                \
184         io/seekFile.lc                  \
185         io/setBuffering.lc              \
186         io/setCurrentDirectory.lc       \
187         io/showTime.lc                  \
188         io/system.lc                    \
189         io/toClockSec.lc                \
190         io/toLocalTime.lc               \
191         io/toUTCTime.lc                 \
192         io/writeFile.lc                 \
193         prims/ByteOps.lc                \
194         storage/SMalloc.lc __readline_cfile
195
196 H_FILES = $(RTS_LH:.lh=.h)
197 C_FILES = $(RTS_LC:.lc=.c) $(RTS_LHC:.lhc=.hc) $(CLIB_LC:.lc=.c)
198
199 /* Header files */
200
201 all depend :: $(H_FILES)
202
203 ExtraStuffToClean ( $(C_FILES) )
204
205 /* Literate-pgmming suffix rules used herein */
206 LitSuffixRule(.lhc,.hc)
207 LitSuffixRule(.lc,.c)
208 LitSuffixRule(.lh,.h)
209
210 /****************************************************************
211 *                                                               *
212 * interesting collections of .o files                           *
213 *                                                               *
214 ****************************************************************/
215
216 RTS_OBJS_norm = $(RTS_LC:.lc=.o)    $(RTS_LHC:.lhc=.o)
217 RTS_OBJS_p    = $(RTS_LC:.lc=_p.o)  $(RTS_LHC:.lhc=_p.o)
218 RTS_OBJS_t    = $(RTS_LC:.lc=_t.o)  $(RTS_LHC:.lhc=_t.o)
219 RTS_OBJS_u    = $(RTS_LC:.lc=_u.o)  $(RTS_LHC:.lhc=_u.o)
220 RTS_OBJS_mc   = $(RTS_LC:.lc=_mc.o) $(RTS_LHC:.lhc=_mc.o)
221 RTS_OBJS_mr   = $(RTS_LC:.lc=_mr.o) $(RTS_LHC:.lhc=_mr.o)
222 RTS_OBJS_mt   = $(RTS_LC:.lc=_mt.o) $(RTS_LHC:.lhc=_mt.o)
223 RTS_OBJS_mp   = $(RTS_LC:.lc=_mp.o) $(RTS_LHC:.lhc=_mp.o)
224 RTS_OBJS_mg   = $(RTS_LC:.lc=_mg.o) $(RTS_LHC:.lhc=_mg.o)
225 RTS_OBJS_2s   = $(RTS_LC:.lc=_2s.o) $(RTS_LHC:.lhc=_2s.o)
226 RTS_OBJS_1s   = $(RTS_LC:.lc=_1s.o) $(RTS_LHC:.lhc=_1s.o)
227 RTS_OBJS_du   = $(RTS_LC:.lc=_du.o) $(RTS_LHC:.lhc=_du.o)
228 RTS_OBJS_a    = $(RTS_LC:.lc=_a.o)  $(RTS_LHC:.lhc=_a.o)
229 RTS_OBJS_b    = $(RTS_LC:.lc=_b.o)  $(RTS_LHC:.lhc=_b.o)
230 RTS_OBJS_c    = $(RTS_LC:.lc=_c.o)  $(RTS_LHC:.lhc=_c.o)
231 RTS_OBJS_d    = $(RTS_LC:.lc=_d.o)  $(RTS_LHC:.lhc=_d.o)
232 RTS_OBJS_e    = $(RTS_LC:.lc=_e.o)  $(RTS_LHC:.lhc=_e.o)
233 RTS_OBJS_f    = $(RTS_LC:.lc=_f.o)  $(RTS_LHC:.lhc=_f.o)
234 RTS_OBJS_g    = $(RTS_LC:.lc=_g.o)  $(RTS_LHC:.lhc=_g.o)
235 RTS_OBJS_h    = $(RTS_LC:.lc=_h.o)  $(RTS_LHC:.lhc=_h.o)
236 RTS_OBJS_i    = $(RTS_LC:.lc=_i.o)  $(RTS_LHC:.lhc=_i.o)
237 RTS_OBJS_j    = $(RTS_LC:.lc=_j.o)  $(RTS_LHC:.lhc=_j.o)
238 RTS_OBJS_k    = $(RTS_LC:.lc=_k.o)  $(RTS_LHC:.lhc=_k.o)
239 RTS_OBJS_l    = $(RTS_LC:.lc=_l.o)  $(RTS_LHC:.lhc=_l.o)
240 RTS_OBJS_m    = $(RTS_LC:.lc=_m.o)  $(RTS_LHC:.lhc=_m.o)
241 RTS_OBJS_n    = $(RTS_LC:.lc=_n.o)  $(RTS_LHC:.lhc=_n.o)
242 RTS_OBJS_o    = $(RTS_LC:.lc=_o.o)  $(RTS_LHC:.lhc=_o.o)
243
244 CLIB_OBJS     = $(CLIB_LC:.lc=.o)
245
246 /****************************************************************
247 *                                                               *
248 * knock the "clib" (completely ordinary C, compiled once)       *
249 * stuff over the head first...                                  *
250 *                                                               *
251 ****************************************************************/
252
253 #define CompileClibishly(file,flags)                            @@\
254 CAT2(file,.o) : CAT2(file,.c)                                   @@\
255         $(RM) $@                                                @@\
256         $(GHC) -c -o CAT2(file,.o) $(GHCFLAGS) flags CAT2(file,.c)
257
258 NormalLibraryTarget(HSclib,$(CLIB_OBJS))
259 ExtraStuffToClean($(CLIB_OBJS))
260 #if DoInstallGHCSystem == YES
261 InstallLibraryTarget(HSclib,$(INSTLIBDIR_GHC))
262 #endif
263
264 /* all .lc files, so far */
265 CompileClibishly(hooks/ErrorHdr,)
266 CompileClibishly(hooks/OutOfHeap,)
267 CompileClibishly(hooks/OutOfStk,)
268 CompileClibishly(hooks/OutOfVM,)
269 CompileClibishly(hooks/PatErrorHdr,)
270 CompileClibishly(hooks/TraceHooks,)
271 CompileClibishly(hooks/SizeHooks,)
272 CompileClibishly(io/closeFile,)
273 CompileClibishly(io/createDirectory,)
274 CompileClibishly(io/env,)
275 CompileClibishly(io/errno,)
276 CompileClibishly(io/execvpe,)
277 CompileClibishly(io/fileEOF,)
278 CompileClibishly(io/fileGetc,)
279 CompileClibishly(io/fileLookAhead,)
280 CompileClibishly(io/filePosn,)
281 CompileClibishly(io/filePutc,)
282 CompileClibishly(io/fileSize,)
283 CompileClibishly(io/flushFile,)
284 CompileClibishly(io/getBufferMode,)
285 CompileClibishly(io/getCPUTime,)
286 CompileClibishly(io/getClockTime,)
287 CompileClibishly(io/getCurrentDirectory,)
288 CompileClibishly(io/getDirectoryContents,)
289 CompileClibishly(io/getLock,)
290 CompileClibishly(io/inputReady,)
291 CompileClibishly(io/openFile,)
292 CompileClibishly(io/readFile,)
293 CompileClibishly(io/removeDirectory,)
294 CompileClibishly(io/removeFile,)
295 CompileClibishly(io/renameDirectory,)
296 CompileClibishly(io/renameFile,)
297 CompileClibishly(io/seekFile,)
298 CompileClibishly(io/setBuffering,)
299 CompileClibishly(io/setCurrentDirectory,)
300 CompileClibishly(io/showTime,)
301 CompileClibishly(io/system,)
302 CompileClibishly(io/toClockSec,)
303 CompileClibishly(io/toLocalTime,)
304 CompileClibishly(io/toUTCTime,)
305 CompileClibishly(io/writeFile,)
306 CompileClibishly(main/TopClosure,)      /* NB */
307 CompileClibishly(main/TopClosure13,)    /* ditto */
308 CompileClibishly(prims/ByteOps,)
309 CompileClibishly(storage/SMalloc,)
310 #if GhcWithReadline == YES
311 CompileClibishly(io/ghcReadline,)
312 #endif
313
314 ExtraStuffToClean(main/TopClosure.o main/TopClosure13.o)
315
316 all :: main/TopClosure.o main/TopClosure13.o
317
318 install :: main/TopClosure.o main/TopClosure13.o
319         $(INSTALL) -c $(INSTLIBFLAGS) main/TopClosure.o   $(INSTLIBDIR_GHC)/TopClosure.o
320         $(INSTALL) -c $(INSTLIBFLAGS) main/TopClosure13.o $(INSTLIBDIR_GHC)/TopClosure13.o
321
322 #if GhcBuild_mp == YES
323 # if solaris2_TARGET_OS
324 #  define __socket_libs -lsocket -lnsl
325 # else
326 #  define __socket_libs /*none*/
327 # endif
328
329 AllTarget(gum/SysMan)
330 gum/SysMan : gum/SysMan_mp.o gum/LLComms_mp.o
331         $(RM) $@
332         $(CC) gum/SysMan_mp.o gum/LLComms_mp.o -o $@ -L$$PVM_ROOT/lib/$$PVM_ARCH -lpvm3 -lgpvm3 __socket_libs
333 ExtraStuffToClean(gum/SysMan_mp.o gum/SysMan)
334 # if DoInstallGHCSystem == YES
335 install :: gum/SysMan
336         $(INSTALL) -c $(INSTBINFLAGS) gum/SysMan $(INSTLIBDIR_GHC)/SysMan
337 # endif
338 #endif
339
340 /****************************************************************
341 *                                                               *
342 * special local make-world macros                               *
343 *                                                               *
344 ****************************************************************/
345
346 /* to build and install the per-build rts stuff */
347
348 #ifndef SpecialGhcRtsLibTarget
349 #define SpecialGhcRtsLibTarget(tag,objs)                                        @@\
350 AllTarget(CAT3(libHSrts,tag,.a))                                                @@\
351 ExtraStuffToClean(objs CAT3(libHSrts,tag,.a))                                   @@\
352 CAT3(libHSrts,tag,.a):: $(H_FILES) objs                                         @@\
353         $(RM) $@                                                                @@\
354         $(AR) $@ objs                                                           @@\
355         $(RANLIB) $@
356 #endif /* SpecialGhcRtsLibTarget */
357
358 #ifndef SpecialGhcRtsLibInstallTarget
359 #if DoInstallGHCSystem == YES
360 #define SpecialGhcRtsLibInstallTarget(tag)                                      @@\
361 install :: CAT3(libHSrts,tag,.a)                                                @@\
362         $(INSTALL) $(INSTLIBFLAGS) \                                            @@\
363                 CAT3(libHSrts,tag,.a) \                                         @@\
364                 $(INSTLIBDIR_GHC)/CAT3(libHSrts,tag,.a)                         @@\
365         $(RANLIB) $(INSTLIBDIR_GHC)/CAT3(libHSrts,tag,.a)
366 #else /* ! DoInstallGHC... */
367 #define SpecialGhcRtsLibInstallTarget(tag) /*nothing*/
368 #endif /* ! DoInstallGHC... */
369 #endif /* SpecialGhcRtsLibInstallTarget */
370
371 #define BigBuildTarget(tag,objs)        \
372 SpecialGhcRtsLibTarget(tag,objs)        @@\
373 SpecialGhcRtsLibInstallTarget(tag)
374
375 /****************************************************************
376 *                                                               *
377 * creating and installing libHSrts.a (in its many flavors)      *
378 *                                                               *
379 ****************************************************************/
380
381 #if DoInstallGHCSystem == YES
382 MakeDirectories(install, $(INSTLIBDIR_GHC))
383 #endif /* DoInstallGHCSystem */
384
385 IfGhcBuild_normal(BigBuildTarget(,$(RTS_OBJS_norm)))
386 IfGhcBuild_p(BigBuildTarget(_p,   $(RTS_OBJS_p)))
387 IfGhcBuild_t(BigBuildTarget(_t,   $(RTS_OBJS_t)))
388 IfGhcBuild_u(BigBuildTarget(_u,   $(RTS_OBJS_u)))
389 IfGhcBuild_mc(BigBuildTarget(_mc, $(RTS_OBJS_mc)))
390 IfGhcBuild_mr(BigBuildTarget(_mr, $(RTS_OBJS_mr)))
391 IfGhcBuild_mt(BigBuildTarget(_mt, $(RTS_OBJS_mt)))
392 IfGhcBuild_mp(BigBuildTarget(_mp, $(RTS_OBJS_mp)))
393 IfGhcBuild_mg(BigBuildTarget(_mg, $(RTS_OBJS_mg)))
394 IfGhcBuild_2s(BigBuildTarget(_2s, $(RTS_OBJS_2s)))
395 IfGhcBuild_1s(BigBuildTarget(_1s, $(RTS_OBJS_1s)))
396 IfGhcBuild_du(BigBuildTarget(_du, $(RTS_OBJS_du)))
397 IfGhcBuild_a(BigBuildTarget(_a,   $(RTS_OBJS_a)))
398 IfGhcBuild_b(BigBuildTarget(_b,   $(RTS_OBJS_b)))
399 IfGhcBuild_c(BigBuildTarget(_c,   $(RTS_OBJS_c)))
400 IfGhcBuild_d(BigBuildTarget(_d,   $(RTS_OBJS_d)))
401 IfGhcBuild_e(BigBuildTarget(_e,   $(RTS_OBJS_e)))
402 IfGhcBuild_f(BigBuildTarget(_f,   $(RTS_OBJS_f)))
403 IfGhcBuild_g(BigBuildTarget(_g,   $(RTS_OBJS_g)))
404 IfGhcBuild_h(BigBuildTarget(_h,   $(RTS_OBJS_h)))
405 IfGhcBuild_i(BigBuildTarget(_i,   $(RTS_OBJS_i)))
406 IfGhcBuild_j(BigBuildTarget(_j,   $(RTS_OBJS_j)))
407 IfGhcBuild_k(BigBuildTarget(_k,   $(RTS_OBJS_k)))
408 IfGhcBuild_l(BigBuildTarget(_l,   $(RTS_OBJS_l)))
409 IfGhcBuild_m(BigBuildTarget(_m,   $(RTS_OBJS_m)))
410 IfGhcBuild_n(BigBuildTarget(_n,   $(RTS_OBJS_n)))
411 IfGhcBuild_o(BigBuildTarget(_o,   $(RTS_OBJS_o)))
412
413
414 /****************************************************************
415 *                                                               *
416 * compile the individual RTS files                              *
417 *                                                               *
418 ****************************************************************/
419
420 #define DoRtsFile(file,isuf,way,flags)                                   @@\
421 CAT3(file,way,.o) : CAT2(file,isuf)                                      @@\
422         $(RM) $@                                                         @@\
423         $(GHC) -c -o CAT3(file,way,.o) $(GHCFLAGS) flags CAT2(file,isuf)
424
425 #define CompileRTSishly(file,isuf,flags)                        @@\
426 IfGhcBuild_normal(DoRtsFile(file,isuf,,flags $(GHC_OPTS_norm))) \
427 IfGhcBuild_p(DoRtsFile(file,isuf,_p,   flags $(GHC_OPTS_p)))    \
428 IfGhcBuild_t(DoRtsFile(file,isuf,_t,   flags $(GHC_OPTS_t)))    \
429 IfGhcBuild_u(DoRtsFile(file,isuf,_u,   flags $(GHC_OPTS_u)))    \
430 IfGhcBuild_mc(DoRtsFile(file,isuf,_mc, flags $(GHC_OPTS_mc)))   \
431 IfGhcBuild_mr(DoRtsFile(file,isuf,_mr, flags $(GHC_OPTS_mr)))   \
432 IfGhcBuild_mt(DoRtsFile(file,isuf,_mt, flags $(GHC_OPTS_mt)))   \
433 IfGhcBuild_mp(DoRtsFile(file,isuf,_mp, flags $(GHC_OPTS_mp)))   \
434 IfGhcBuild_mg(DoRtsFile(file,isuf,_mg, flags $(GHC_OPTS_mg)))   \
435 IfGhcBuild_2s(DoRtsFile(file,isuf,_2s, flags $(GHC_OPTS_2s)))   \
436 IfGhcBuild_1s(DoRtsFile(file,isuf,_1s, flags $(GHC_OPTS_1s)))   \
437 IfGhcBuild_du(DoRtsFile(file,isuf,_du, flags $(GHC_OPTS_du)))   \
438 IfGhcBuild_a(DoRtsFile(file,isuf,_a,   flags $(GHC_OPTS_a)))    \
439 IfGhcBuild_b(DoRtsFile(file,isuf,_b,   flags $(GHC_OPTS_b)))    \
440 IfGhcBuild_c(DoRtsFile(file,isuf,_c,   flags $(GHC_OPTS_c)))    \
441 IfGhcBuild_d(DoRtsFile(file,isuf,_d,   flags $(GHC_OPTS_d)))    \
442 IfGhcBuild_e(DoRtsFile(file,isuf,_e,   flags $(GHC_OPTS_e)))    \
443 IfGhcBuild_f(DoRtsFile(file,isuf,_f,   flags $(GHC_OPTS_f)))    \
444 IfGhcBuild_g(DoRtsFile(file,isuf,_g,   flags $(GHC_OPTS_g)))    \
445 IfGhcBuild_h(DoRtsFile(file,isuf,_h,   flags $(GHC_OPTS_h)))    \
446 IfGhcBuild_i(DoRtsFile(file,isuf,_i,   flags $(GHC_OPTS_i)))    \
447 IfGhcBuild_j(DoRtsFile(file,isuf,_j,   flags $(GHC_OPTS_j)))    \
448 IfGhcBuild_k(DoRtsFile(file,isuf,_k,   flags $(GHC_OPTS_k)))    \
449 IfGhcBuild_l(DoRtsFile(file,isuf,_l,   flags $(GHC_OPTS_l)))    \
450 IfGhcBuild_m(DoRtsFile(file,isuf,_m,   flags $(GHC_OPTS_m)))    \
451 IfGhcBuild_n(DoRtsFile(file,isuf,_n,   flags $(GHC_OPTS_n)))    \
452 IfGhcBuild_o(DoRtsFile(file,isuf,_o,   flags $(GHC_OPTS_o)))
453
454 /* here we go: */
455
456 CompileRTSishly(c-as-asm/CallWrap_C,.c,)
457 CompileRTSishly(c-as-asm/FreeMallocPtr,.c,)
458 CompileRTSishly(c-as-asm/HpOverflow,.c,)
459 CompileRTSishly(c-as-asm/PerformIO,.hc,-mtoggle-sp-mangling/*toggle it back*/)
460 CompileRTSishly(c-as-asm/StablePtr,.c,)
461 CompileRTSishly(c-as-asm/StablePtrOps,.c,)
462 CompileRTSishly(c-as-asm/StgDebug,.c,)
463 CompileRTSishly(c-as-asm/StgMiniInt,.c,)
464 CompileRTSishly(gum/FetchMe,.hc,-mtoggle-sp-mangling/*toggle it back*/)
465 CompileRTSishly(gum/GlobAddr,.c,)
466 CompileRTSishly(gum/HLComms,.c,)
467 CompileRTSishly(gum/Hash,.c,)
468 CompileRTSishly(gum/LLComms,.c,)
469 CompileRTSishly(gum/Pack,.c,)
470 CompileRTSishly(gum/ParInit,.c,)
471 CompileRTSishly(gum/RBH,.c,)
472 CompileRTSishly(gum/Sparks,.c,)
473 CompileRTSishly(gum/SysMan,.c,) /* NB: not in library */
474 CompileRTSishly(gum/Unpack,.c,)
475 CompileRTSishly(main/GranSim,.c,)
476 CompileRTSishly(main/Itimer,.c,)
477 CompileRTSishly(main/RednCounts,.c,)
478 CompileRTSishly(main/SMRep,.c,)
479 CompileRTSishly(main/Select,.c,)
480 CompileRTSishly(main/Signals,.c,)
481 CompileRTSishly(main/StgOverflow,.c,)
482 CompileRTSishly(main/StgStartup,.hc,-mtoggle-sp-mangling/*toggle it back*/)
483 CompileRTSishly(main/StgThreads,.hc,-mtoggle-sp-mangling/*toggle it back*/)
484 CompileRTSishly(main/StgTrace,.c,)
485 CompileRTSishly(main/StgUpdate,.hc,-mtoggle-sp-mangling/*toggle it back*/)
486 CompileRTSishly(main/Threads,.c,)
487 CompileRTSishly(main/main,.c,)
488 CompileRTSishly(profiling/CostCentre,.c,)
489 CompileRTSishly(profiling/Hashing,.c,)
490 CompileRTSishly(profiling/HeapProfile,.c,)
491 CompileRTSishly(profiling/Indexing,.c,)
492 CompileRTSishly(profiling/LifeProfile,.c,)
493 CompileRTSishly(profiling/Timer,.c,)
494 CompileRTSishly(prims/PrimArith,.c,)
495 CompileRTSishly(prims/PrimMisc,.c,)
496 CompileRTSishly(storage/Force_GC,.c,)
497 CompileRTSishly(storage/SM1s,.c,)
498 CompileRTSishly(storage/SM2s,.c,)
499 CompileRTSishly(storage/SMap,.c,)
500 CompileRTSishly(storage/SMcheck,.c,)
501 CompileRTSishly(storage/SMcompacting,.c,)
502 CompileRTSishly(storage/SMcopying,.c,)
503 CompileRTSishly(storage/SMdu,.c,)
504 CompileRTSishly(storage/SMevac,.c,)
505 CompileRTSishly(storage/SMextn,.c,)
506 CompileRTSishly(storage/SMgen,.c,)
507 CompileRTSishly(storage/SMinit,.c,)
508 CompileRTSishly(storage/SMmark,.hc,-optc-DMARK_REG_MAP)
509 CompileRTSishly(storage/SMmarking,.c,)
510 CompileRTSishly(storage/SMscan,.c,)
511 CompileRTSishly(storage/SMscav,.c,)
512 CompileRTSishly(storage/SMstacks,.c,)
513 CompileRTSishly(storage/SMstatic,.c,)
514 CompileRTSishly(storage/SMstats,.c,)
515 CompileRTSishly(storage/mprotect,.c,)
516
517 /****************************************************************
518 *                                                               *
519 * misc "make" targets -- depend, clean, tags                    *
520 *                                                               *
521 ****************************************************************/
522
523 ClearTagsFile()
524 /* this is not the way we should do this [WDP [lazy] 94/09] */
525 CTagsTarget( $(RTS_LC) $($RTS_LHC) $(CLIB_LC) )
526 CTagsTarget( gmp/[a-z]*.c )
527 CTagsTarget( regex/[a-z]*.c )
528
529 CDependTarget( $(RTS_LC) $($RTS_LHC) $(CLIB_LC) )
530
531 LitStuffNeededHere(docs depend)
532 InfoStuffNeededHere(docs)
533
534 /*LitDocRootTargetWithNamedOutput(threadroot,lit,threadroot-standalone)*/