# -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.191 2001/08/17 22:29:06 sof Exp $
+# $Id: Makefile,v 1.193 2001/10/19 10:02:50 sewardj Exp $
TOP = ..
include $(TOP)/mk/boilerplate.mk
# equivalent of `env' if it doesn't exist locally).
#
ifneq "$(way)" "dll"
+ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
HS_PROG=ghc$(_way)-$(ProjectVersion)
else
+HS_PROG=ghc$(_way)
+endif
+else
HS_PROG=ghc-$(ProjectVersion)
endif
# ByteCodeItbls uses primops that the NCG doesn't support yet.
ghci/ByteCodeItbls_HC_OPTS = -fvia-C
-ghci/ByteCodeLink_HC_OPTS = -fvia-C
+ghci/ByteCodeLink_HC_OPTS = -fvia-C -monly-3-regs
# CSE interacts badly with top-level IORefs (reportedly in DriverState and
# DriverMkDepend), causing some of them to be commoned up. We have a fix for
# but put it together with the libraries.
# Also don't want any interface files intstalled
+ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
INSTALL_LIBEXECS += $(HS_PROG)
+else
+INSTALL_PROGS += $(HS_PROG)
+endif
#-----------------------------------------------------------------------------
# clean