# -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.120 2000/12/19 12:27:09 simonmar Exp $
+# $Id: Makefile,v 1.128 2000/12/30 20:35:37 panne Exp $
TOP = ..
include $(TOP)/mk/boilerplate.mk
@echo "cGHC_UNLIT = \"$(GHC_UNLIT)\"" >> $(CONFIG_HS)
@echo "cGHC_MANGLER = \"$(GHC_MANGLER)\"" >> $(CONFIG_HS)
@echo "cGHC_SPLIT = \"$(GHC_SPLIT)\"" >> $(CONFIG_HS)
- @echo "cGHC_STATS = \"$(GHC_STATS)\"" >> $(CONFIG_HS)
@echo "cGHC_SYSMAN = \"$(GHC_SYSMAN)\"" >> $(CONFIG_HS)
@echo "cEnableWin32DLLs = \"$(EnableWin32DLLs)\"" >> $(CONFIG_HS)
@echo "cCP = \"$(CP)\"" >> $(CONFIG_HS)
endif
endif
-# Only include GHCi if we're bootstrapping with at least version 409
+# Only include GHCi if we're bootstrapping with at least version 411
ifeq "$(GhcWithInterpreter)" "YES"
-ghc_409_at_least = $(shell expr "$(GhcMinVersion)" \>= 9)
-ifeq "$(ghc_409_at_least)" "1"
+ghc_411_at_least = $(shell expr "$(GhcMinVersion)" \>= 11)
+ifeq "$(ghc_411_at_least)" "1"
SRC_HC_OPTS += -DGHCI -optc-DGHCI
DIRS += ghci
endif
HS_OBJS = \
$(patsubst %.hc, %.o, $(HCS)) \
- parser/hschooks.o \
- parser/hs_ctype.o
+ parser/hschooks.o
DESTDIR = $(INSTALL_LIBRARY_DIR_GHC)
parser/Parser_HC_OPTS += -Onot -fno-warn-incomplete-patterns
+# The latest GHC version doesn't have a -K option yet, and it doesn't
+# seem to be necessary anymore for the modules below.
+ifeq "$(ghc_411_at_least)" "0"
+rename/ParseIface_HC_OPTS += -K2m
+parser/Parser_HC_OPTS += -K2m
+endif
+
ifeq "$(TARGETPLATFORM)" "hppa1.1-hp-hpux9"
rename/RnMonad_HC_OPTS = -O2 -O2-for-C
endif
-rename/RnEnv_HC_OPTS =
rename/RnSource_HC_OPTS = -H12m
rename/RnIfaces_HC_OPTS = -H8m
rename/RnExpr_HC_OPTS = -H10m
rename/RnNames_HC_OPTS = -H12m
-rename/RnMonad_HC_OPTS =
specialise/Specialise_HC_OPTS = -Onot -H12m
simplCore/Simplify_HC_OPTS = -H15m
simplCore/OccurAnal_HC_OPTS = -H10m
typecheck/TcBinds_HC_OPTS = -H10m
typecheck/TcEnv_HC_OPTS = -H10m
-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 (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"
-# "stbu" bug in alpha native code generator...
-basicTypes/Unique_HC_OPTS =
-endif
-
# flags for PrimPacked:
#
# -monly-3-regs