[project @ 2002-06-25 15:49:58 by mthomas]
[ghc-hetmet.git] / ghc / rts / rts.conf.in
1 #include "config.h"
2 #include "Derived.h"
3
4 Package {
5         name           = "rts",  /* The RTS is just another package! */
6         import_dirs    = [],
7         source_dirs    = [],
8
9 #ifdef INSTALLING
10         library_dirs   =  [ "$libdir"
11 # ifdef mingw32_TARGET_OS
12                           /* force the dist-provided gcc-lib/ into scope. */
13                           , "$libdir/gcc-lib"
14 # endif
15 #else /* !INSTALLING */
16         library_dirs    = [ "$libdir/ghc/rts"
17 # ifndef HAVE_LIBGMP
18                           , "$libdir/ghc/rts/gmp"
19 # endif
20 #endif
21                           ],
22
23         hs_libraries      = [ "HSrts" ],
24         extra_libraries   = [ "gmp"
25                             , "m"               /* for ldexp() */
26 #ifdef mingw32_TARGET_OS
27                               ,"winmm"          /* for the threadDelay timer */
28                               ,"wsock32"        /* for the linker */
29 #endif
30 #ifdef USING_LIBBFD
31                               ,"bfd", "iberty"  /* for debugging */
32 #endif
33 #ifdef HAVE_LIBMINGWEX
34 # ifndef INSTALLING                             /* Bundled Mingw is behind */
35                               ,"mingwex"
36 # endif
37 #endif
38 #if defined(THREADED_RTS) && !defined(mingw32_TARGET_OS)
39                               ,"pthread"
40 # ifdef osf3_TARGET_OS
41                               ,"exc"
42 # endif
43 #endif
44                             ],
45
46 #ifdef INSTALLING
47         include_dirs    = [ "$libdir/include"
48 # ifdef mingw32_TARGET_OS
49                           , "$libdir/include/mingw"
50 # endif
51                           ],
52 #else /* !INSTALLING */
53         include_dirs    = [ "$libdir/ghc/includes" ],
54 #endif
55
56         c_includes     = [ "Stg.h" ],
57         package_deps   = [],
58         extra_ghc_opts = [],
59         extra_cc_opts  = [],
60                /* the RTS forward-references to a bunch of stuff in the prelude,
61                   so we force it to be included with special options to ld. */
62         extra_ld_opts  =
63          [
64 #ifdef LEADING_UNDERSCORE
65            "-u", "_GHCziBase_Izh_static_info"
66          , "-u", "_GHCziBase_Czh_static_info"
67          , "-u", "_GHCziFloat_Fzh_static_info"
68          , "-u", "_GHCziFloat_Dzh_static_info"
69          , "-u", "_GHCziPtr_Ptr_static_info"
70          , "-u", "_GHCziWord_Wzh_static_info"
71          , "-u", "_GHCziInt_I8zh_static_info"
72          , "-u", "_GHCziInt_I16zh_static_info"
73          , "-u", "_GHCziInt_I32zh_static_info"
74          , "-u", "_GHCziInt_I64zh_static_info"
75          , "-u", "_GHCziWord_W8zh_static_info"
76          , "-u", "_GHCziWord_W16zh_static_info"
77          , "-u", "_GHCziWord_W32zh_static_info"
78          , "-u", "_GHCziWord_W64zh_static_info"
79          , "-u", "_GHCziStable_StablePtr_static_info"
80          , "-u", "_GHCziBase_Izh_con_info"
81          , "-u", "_GHCziBase_Czh_con_info"
82          , "-u", "_GHCziFloat_Fzh_con_info"
83          , "-u", "_GHCziFloat_Dzh_con_info"
84          , "-u", "_GHCziPtr_Ptr_con_info"
85          , "-u", "_GHCziStable_StablePtr_con_info"
86          , "-u", "_GHCziBase_False_closure"
87          , "-u", "_GHCziBase_True_closure"
88          , "-u", "_GHCziPack_unpackCString_closure"
89          , "-u", "_GHCziIOBase_stackOverflow_closure"
90          , "-u", "_GHCziIOBase_heapOverflow_closure"
91          , "-u", "_GHCziIOBase_NonTermination_closure"
92          , "-u", "_GHCziIOBase_BlockedOnDeadMVar_closure"
93          , "-u", "_GHCziIOBase_Deadlock_closure"
94          , "-u", "_GHCziWeak_runFinalizzerBatch_closure"
95          , "-u", "___stginit_Prelude"
96 #else
97            "-u", "GHCziBase_Izh_static_info"
98          , "-u", "GHCziBase_Czh_static_info"
99          , "-u", "GHCziFloat_Fzh_static_info"
100          , "-u", "GHCziFloat_Dzh_static_info"
101          , "-u", "GHCziPtr_Ptr_static_info"
102          , "-u", "GHCziWord_Wzh_static_info"
103          , "-u", "GHCziInt_I8zh_static_info"
104          , "-u", "GHCziInt_I16zh_static_info"
105          , "-u", "GHCziInt_I32zh_static_info"
106          , "-u", "GHCziInt_I64zh_static_info"
107          , "-u", "GHCziWord_W8zh_static_info"
108          , "-u", "GHCziWord_W16zh_static_info"
109          , "-u", "GHCziWord_W32zh_static_info"
110          , "-u", "GHCziWord_W64zh_static_info"
111          , "-u", "GHCziStable_StablePtr_static_info"
112          , "-u", "GHCziBase_Izh_con_info"
113          , "-u", "GHCziBase_Czh_con_info"
114          , "-u", "GHCziFloat_Fzh_con_info"
115          , "-u", "GHCziFloat_Dzh_con_info"
116          , "-u", "GHCziPtr_Ptr_con_info"
117          , "-u", "GHCziStable_StablePtr_con_info"
118          , "-u", "GHCziBase_False_closure"
119          , "-u", "GHCziBase_True_closure"
120          , "-u", "GHCziPack_unpackCString_closure"
121          , "-u", "GHCziIOBase_stackOverflow_closure"
122          , "-u", "GHCziIOBase_heapOverflow_closure"
123          , "-u", "GHCziIOBase_NonTermination_closure"
124          , "-u", "GHCziIOBase_BlockedOnDeadMVar_closure"
125          , "-u", "GHCziIOBase_Deadlock_closure"
126          , "-u", "GHCziWeak_runFinalizzerBatch_closure"
127          , "-u", "__stginit_Prelude"
128 #endif
129          ]
130 }