# -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.94 2000/10/10 13:13:17 simonmar Exp $
+# $Id: Makefile,v 1.97 2000/10/27 09:39:35 sewardj Exp $
TOP = ..
include $(TOP)/mk/boilerplate.mk
# -----------------------------------------------------------------------------
# Create compiler configuration
+CURRENT_DIR=ghc/compiler
CONFIG_HS = main/Config.hs
boot :: $(CONFIG_HS)
HS_SRCS = $(foreach dir,$(DIRS),$(wildcard $(dir)/*.lhs) $(wildcard $(dir)/*.hs))
-ifneq "$(GhcWithHscBuiltViaC)" "YES"
-HS_SRCS += rename/ParseIface.hs parser/Parser.hs
-endif
+# ToDo: not clear why this is here -- messes up linking
+#ifneq "$(GhcWithHscBuiltViaC)" "YES"
+#HS_SRCS += rename/ParseIface.hs parser/Parser.hs
+#endif
HCS = $(patsubst %.lhs, %.hc, $(patsubst %.hs, %.hc, $(HS_SRCS)))
endif
endif
-main/CmdLineOpts_HC_OPTS = -K6m
+main/CmdLineOpts_HC_OPTS = -K6m
nativeGen/PprMach_HC_OPTS = -K2m
nativeGen/MachMisc_HC_OPTS = -K2m
nativeGen/MachCode_HC_OPTS = -H10m
usageSP/UsageSPInf_HC_OPTS = -Onot
prelude/PrimOp_HC_OPTS = -H12m -K3m
-prelude/PrelRules_HC_OPTS = -fvia-C
+prelude/PrelRules_HC_OPTS =
-parser/Lex_HC_OPTS = -fvia-C -K2m -H16m
-parser/Ctype_HC_OPTS = -K2m -fvia-C
+parser/Lex_HC_OPTS = -K2m -H16m
+parser/Ctype_HC_OPTS = -K2m
rename/ParseIface_HC_OPTS += -Onot -H45m -K2m -fno-warn-incomplete-patterns
typecheck/TcBinds_HC_OPTS = -H10m
typecheck/TcEnv_HC_OPTS = -H10m
-utils/Argv_HC_OPTS = -fvia-C
utils/SST_HC_OPTS =
utils/StringBuffer_HC_OPTS = -fvia-C -fno-prune-tydecls
utils/Digraph_HC_OPTS = -fglasgow-exts
utils/DirUtils_HC_OPTS =
-# temporary, due to bug in NCG (SDM, 1/6/2000)
+# temporary, due to bug in NCG (x86 spiller fails because a basic block
+# contains both multiply and divide insns, probably soaking up all spill
+# regs) (SDM, 1/6/2000), augmented by JRS 27 Oct 00.
utils/FastString_HC_OPTS = -fvia-C
ifeq "$(alpha_HOST_ARCH)" "1"
#-----------------------------------------------------------------------------
# Linking
-SRC_LD_OPTS += -no-link-chk
+SRC_LD_OPTS += -no-link-chk -ldl
ifneq "$(GhcWithHscBuiltViaC)" "YES"
ifeq "$(GhcReportCompiles)" "YES"