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