[project @ 2000-12-30 20:35:37 by panne]
[ghc-hetmet.git] / ghc / compiler / Makefile
index 32d0b90..aa5c001 100644 (file)
@@ -1,5 +1,5 @@
 # -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.123 2000/12/20 10:44:17 simonmar Exp $
+# $Id: Makefile,v 1.128 2000/12/30 20:35:37 panne Exp $
 
 TOP = ..
 include $(TOP)/mk/boilerplate.mk
@@ -96,10 +96,10 @@ SRC_HC_OPTS += -DILX
 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
@@ -208,16 +208,21 @@ rename/ParseIface_HC_OPTS         += -Onot -H45m -fno-warn-incomplete-patterns
 
 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
@@ -243,21 +248,14 @@ typecheck/TcExpr_HC_OPTS  = -H15m
 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