[project @ 2004-01-23 13:44:52 by simonmar]
authorsimonmar <unknown>
Fri, 23 Jan 2004 13:44:52 +0000 (13:44 +0000)
committersimonmar <unknown>
Fri, 23 Jan 2004 13:44:52 +0000 (13:44 +0000)
Changes to support building GHC as a package(!!)

ghc/compiler/Makefile

index 6732083..f374aae 100644 (file)
@@ -159,6 +159,7 @@ endif
 # be to do `env PATH=$(PATH) make ghc' to minimise the environment. (or the
 # equivalent of `env' if it doesn't exist locally).
 #
+ifneq "$(BuildPackageGHC)" "YES"
 ifneq "$(way)" "dll"
 ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
 HS_PROG=$(odir)/ghc$(_way)-$(ProjectVersion)
@@ -168,6 +169,7 @@ endif
 else
 HS_PROG=$(odir)/ghc-$(ProjectVersion)
 endif
+endif
 
 # -----------------------------------------------------------------------------
 # Create compiler configuration
@@ -560,6 +562,17 @@ endif
 coreSyn/CorePrep_HC_OPTS += -auto-all
 
 #-----------------------------------------------------------------------------
+# Building GHC package
+
+ifeq "$(BuildPackageGHC)" "YES"
+
+PACKAGE = ghc
+STANDALONE_PACKAGE = YES
+PACKAGE_DEPS = base haskell98
+
+endif
+
+#-----------------------------------------------------------------------------
 #              clean
 
 MAINTAINER_CLEAN_FILES += parser/Parser.info main/ParsePkgConf.info