remove empty dir
[ghc-hetmet.git] / ghc / mk / config.mk.in
index ba6be78..e3060ec 100644 (file)
@@ -1,12 +1,11 @@
 # -*-makefile-*-
 # @configure_input@
+
 # -----------------------------------------------------------------------------
-#
-# GHC project configuration
-#
-# This file can only be included from the top of
-# an fptools/ build tree, since the version.mk 'include'
-# reaches in and grabs the project-specific settings.
+# GHC binary distribution configuration
+
+# These settings are used by the top-level Makefile when building
+# binary distributions.
 
 # what to include in a binary distribution
 GhcMainDir = ghc
@@ -18,10 +17,15 @@ else
 GhcBinDistShScripts =
 endif
 
-GhcBinDistPrlScripts = 
+GhcBinDistPrlScripts = ghcprof
 GhcBinDistLibPrlScripts = ghc-asm ghc-split
-GhcBinDistBins = hp2ps ghcprof
+GhcBinDistBins = hp2ps runghc
+GhcBinDistOptBins = runhaskell
 GhcBinDistLinks = ghc ghci ghc-pkg
+GhcBinDistLibSplicedFiles = package.conf
+
+# -----------------------------------------------------------------------------
+# GHC-specific configuration settings
 
 # Set to YES if $(GHC) has the readline package installed
 GhcHasReadline = @GhcHasReadline@
@@ -29,4 +33,35 @@ GhcHasReadline       = @GhcHasReadline@
 # GTK+
 GTK_CONFIG = @GTK_CONFIG@
 
-include $(GhcMainDir)/mk/version.mk
+# -----------------------------------------------------------------------------
+
+# We can build using the stage1 compiler by setting UseStage1=YES.
+# This is useful when building up a set of .hc files for
+# bootstrapping, because we need the ghc/lib/compat library and the
+# contents of ghc/utils compiled with the stage1 compiler.
+
+ifeq "$(UseStage1)" "YES"
+HC=$(GHC_STAGE1)
+MKDEPENDHS=$(GHC_STAGE1)
+endif
+
+# Some useful GHC version predicates:
+
+ifeq "$(UseStage1)" "YES"
+ghc_ge_504 = YES
+ghc_ge_601 = YES
+ghc_ge_602 = YES
+ghc_ge_603 = YES
+else
+ifeq "$(BootingFromHc)" "YES"
+ghc_ge_504 = YES
+ghc_ge_601 = YES
+ghc_ge_602 = YES
+ghc_ge_603 = YES
+else
+ghc_ge_504 = $(shell if (test $(GhcCanonVersion) -ge 504); then echo YES; else echo NO; fi)
+ghc_ge_601 = $(shell if (test $(GhcCanonVersion) -ge 601); then echo YES; else echo NO; fi)
+ghc_ge_602 = $(shell if (test $(GhcCanonVersion) -ge 602); then echo YES; else echo NO; fi)
+ghc_ge_603 = $(shell if (test $(GhcCanonVersion) -ge 603); then echo YES; else echo NO; fi)
+endif
+endif