# -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.105 2000/11/02 13:36:44 simonmar Exp $
+# $Id: Makefile,v 1.111 2000/11/07 14:07:09 simonmar Exp $
TOP = ..
include $(TOP)/mk/boilerplate.mk
DIRS = \
utils basicTypes types hsSyn prelude rename typecheck deSugar coreSyn \
specialise simplCore stranal stgSyn simplStg codeGen absCSyn main \
- profiling parser usageSP cprAnalysis javaGen ghci
-
+ profiling parser usageSP cprAnalysis javaGen compMan
ifeq ($(GhcWithNativeCodeGen),YES)
DIRS += nativeGen
endif
endif
+# Only include GHCi if we're bootstrapping with at least version 409
+ifeq "$(GhcWithInterpreter)" "YES"
+ghc_409_at_least = $(shell expr "$(GhcMinVersion)" \>= 9)
+ifeq "$(ghc_409_at_least)" "1"
+SRC_HC_OPTS += -DGHCI -optc-DGHCI
+DIRS += ghci
+endif
+endif
HS_SRCS = $(foreach dir,$(DIRS),$(wildcard $(dir)/*.lhs) $(wildcard $(dir)/*.hs))
# driver when booting.
#
ifneq "$(GhcWithHscBuiltViaC)" "YES"
-HC=$(WithGhcHc)
+HC=$(GHC)
else
HC=$(GHC_INPLACE)
endif
# Avoids Bug in 3.02, it seems
usageSP/UsageSPInf_HC_OPTS = -Onot
-prelude/PrimOp_HC_OPTS = -H12m -K3m
+prelude/PrimOp_HC_OPTS = -H12m -K3m -no-recomp
# because the NCG can't handle the 64-bit math in here
prelude/PrelRules_HC_OPTS = -fvia-C
# separate bugfix to the fixpoint finder.
simplStg/UpdAnal_HC_OPTS = -fno-strictness
-stgSyn/StgInterp_HC_OPTS = -fvia-C
+ghci/StgInterp_HC_OPTS = -fvia-C
# ----------------------------------------------------------------------------
# C compilations
# Extra tidy, remove the .hc files (if you've got them).
MAINTAINER_CLEAN_FILES += $(wildcard */*.hc) \
+ parser/Parser.info rename/ParseIface.info \
parser/Parser.hs rename/ParseIface.hs
-
#-----------------------------------------------------------------------------
# TAGS setup