[project @ 2000-12-30 20:35:37 by panne]
[ghc-hetmet.git] / ghc / compiler / Makefile
index 9834151..aa5c001 100644 (file)
@@ -1,5 +1,5 @@
 # -----------------------------------------------------------------------------
-# $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
@@ -55,7 +55,6 @@ $(CONFIG_HS) : $(FPTOOLS_TOP)/mk/config.mk Makefile
        @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)
@@ -97,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
@@ -121,8 +120,7 @@ endif
 
 HS_OBJS  = \
   $(patsubst %.hc, %.o, $(HCS)) \
-  parser/hschooks.o \
-  parser/hs_ctype.o
+  parser/hschooks.o
 
 DESTDIR       = $(INSTALL_LIBRARY_DIR_GHC)
 
@@ -210,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
@@ -245,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