then [ clibdir ]
else [ ghc_src_dir cGHC_RUNTIME_DIR ],
hs_libraries = [ "HSrts" ],
+#ifndef mingw32_TARGET_OS
extra_libraries = [],
+#else
+ extra_libraries = [ "winmm" ], -- for the threadDelay timer
+#endif
include_dirs = if installing
then [ clibdir ++ "/includes" ]
else [ ghc_src_dir cGHC_INCLUDE_DIR ],
, "PrelBase_Czh_static_info"
, "PrelFloat_Fzh_static_info"
, "PrelFloat_Dzh_static_info"
- , "PrelAddr_Azh_static_info"
- , "PrelAddr_Wzh_static_info"
- , "PrelAddr_I64zh_static_info"
- , "PrelAddr_W64zh_static_info"
+ , "PrelPtr_Ptr_static_info"
+ , "PrelWord_Wzh_static_info"
+ , "PrelInt_I8zh_static_info"
+ , "PrelInt_I16zh_static_info"
+ , "PrelInt_I32zh_static_info"
+ , "PrelInt_I64zh_static_info"
+ , "PrelWord_W8zh_static_info"
+ , "PrelWord_W16zh_static_info"
+ , "PrelWord_W32zh_static_info"
+ , "PrelWord_W64zh_static_info"
, "PrelStable_StablePtr_static_info"
, "PrelBase_Izh_con_info"
, "PrelBase_Czh_con_info"
, "PrelFloat_Fzh_con_info"
, "PrelFloat_Dzh_con_info"
- , "PrelAddr_Azh_con_info"
- , "PrelAddr_Wzh_con_info"
- , "PrelAddr_I64zh_con_info"
- , "PrelAddr_W64zh_con_info"
+ , "PrelPtr_Ptr_con_info"
, "PrelStable_StablePtr_con_info"
, "PrelBase_False_closure"
, "PrelBase_True_closure"
else [ ghc_src_dir cGHC_LIB_DIR ++ "/std"
, ghc_src_dir cGHC_LIB_DIR ++ "/std/cbits" ],
hs_libraries = [ "HSstd" ],
- extra_libraries = [ "HSstd_cbits" ],
+ extra_libraries = [ "HSstd_cbits" ] ++
+# ifdef mingw32_TARGET_OS
+ ["wsock32"]
+# else
+ ["m"] -- libm, that is
+# endif
+ ,
include_dirs = if installing
then []
else [ ghc_src_dir cGHC_LIB_DIR ++ "/std/cbits" ],
package_deps = [ "rts" ],
extra_ghc_opts = [],
extra_cc_opts = [],
- extra_ld_opts = [ "-lm"
-#ifdef mingw32_TARGET_OS
- , "-lwsock32"
-#endif
- ]
+ extra_ld_opts = []
},
Package {
package_deps = [],
extra_ghc_opts = [],
extra_cc_opts = [],
- extra_ld_opts = []
+ extra_ld_opts = [
+#ifndef LEADING_UNDERSCORE
+ "-u Addr_Azh_static_info"
+#else
+ "-u _Addr_Azh_static_info"
+#endif
+ ]
},
Package {
include_dirs = if installing
then []
else [ cFPTOOLS_TOP_ABS ++ "/hslibs/concurrent/cbits" ],
- c_includes = [ "HsConcurrent.h" ],
+ c_includes = [],
package_deps = [ "lang" ],
extra_ghc_opts = [],
extra_cc_opts = [],
include_dirs = if installing
then []
else [ cFPTOOLS_TOP_ABS ++ "/hslibs/data/cbits" ],
- c_includes = [ "HsData.h" ],
- package_deps = [ "lang" ],
+ c_includes = [],
+ package_deps = [ "lang", "util" ],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = []
else [ cFPTOOLS_TOP_ABS ++ "/hslibs/net"
, cFPTOOLS_TOP_ABS ++ "/hslibs/net/cbits" ],
hs_libraries = [ "HSnet" ],
- extra_libraries = [ "HSnet_cbits" ],
+ extra_libraries = [ "HSnet_cbits" ]
+ ++ if suffixMatch "solaris2" cTARGETPLATFORM
+ then [ "nsl", "socket" ]
+ else []
+ ,
include_dirs = if installing
then []
else [ cFPTOOLS_TOP_ABS ++ "/hslibs/net/cbits" ],
c_includes = [ "HsNet.h" ],
- package_deps = [ "lang", "text" ],
+ package_deps = [ "lang", "text", "concurrent" ],
extra_ghc_opts = [],
extra_cc_opts = [],
- extra_ld_opts = if suffixMatch "solaris2" cTARGETPLATFORM
- then [ "-lnsl", "-lsocket" ]
- else []
+ extra_ld_opts = []
},
Package {
then []
else [ cFPTOOLS_TOP_ABS ++ "/hslibs/text/cbits" ],
c_includes = [ "HsText.h" ],
- package_deps = [ "lang", "data" ],
+ package_deps = [ "lang" ],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = []
},
Package {
+ name = "greencard",
+ import_dirs = if installing
+ then [ clibdir ++ "/imports/greencard" ]
+ else [ cFPTOOLS_TOP_ABS ++ "/green-card/lib/ghc" ],
+ library_dirs = if installing
+ then [ clibdir ]
+ else [ cFPTOOLS_TOP_ABS ++ "/green-card/lib/ghc" ],
+ hs_libraries = [ "HSgreencard" ],
+ extra_libraries = [],
+ include_dirs = [],
+ c_includes = [],
+ package_deps = [ "lang" ],
+ extra_ghc_opts = [],
+ extra_cc_opts = [],
+ extra_ld_opts = [],
+ },
+
+ Package {
name = "win32",
import_dirs = if installing
then [ clibdir ++ "/imports/win32" ]
- else [ cFPTOOLS_TOP_ABS ++ "/hslibs/win32/src" ],
+ else [ cFPTOOLS_TOP_ABS ++ "/hslibs/win32" ],
library_dirs = if installing
then [ clibdir ]
- else [ cFPTOOLS_TOP_ABS ++ "/hslibs/win32/src" ],
+ else [ cFPTOOLS_TOP_ABS ++ "/hslibs/win32" ],
hs_libraries = [ "HSwin32" ],
- extra_libraries = [],
+ extra_libraries = [ "user32", "gdi32", "winmm" ],
include_dirs = [],
c_includes = [], -- ???
- package_deps = [ "lang" ],
+ package_deps = [ "lang", "greencard" ],
extra_ghc_opts = [],
extra_cc_opts = [],
- extra_ld_opts = [ "-luser32", "-lgdi32" ]
+ extra_ld_opts = []
},
Package {
then [ clibdir ]
else [ cFPTOOLS_TOP_ABS ++ "/hdirect/lib" ],
hs_libraries = [ "HScom" ],
- extra_libraries = [],
+ extra_libraries = [ "user32", "ole32", "oleaut32", "advapi32" ],
include_dirs = [],
c_includes = [], -- ???
package_deps = [ "lang" ],
extra_ghc_opts = [],
extra_cc_opts = [],
- extra_ld_opts = [ "-luser32", "-lole32", "-loleaut32", "-ladvapi32" ]
+ extra_ld_opts = []
}
]