From 0df411c8517aca0d4f8fdbb6baae3d10ef797840 Mon Sep 17 00:00:00 2001 From: simonmar Date: Fri, 23 Jan 2004 13:44:52 +0000 Subject: [PATCH] [project @ 2004-01-23 13:44:52 by simonmar] Changes to support building GHC as a package(!!) --- ghc/compiler/Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ghc/compiler/Makefile b/ghc/compiler/Makefile index 6732083..f374aae 100644 --- a/ghc/compiler/Makefile +++ b/ghc/compiler/Makefile @@ -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 -- 1.7.10.4