From: simonmar Date: Fri, 23 Jan 2004 13:44:52 +0000 (+0000) Subject: [project @ 2004-01-23 13:44:52 by simonmar] X-Git-Tag: Approx_11550_changesets_converted~124 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=0df411c8517aca0d4f8fdbb6baae3d10ef797840 [project @ 2004-01-23 13:44:52 by simonmar] Changes to support building GHC as a package(!!) --- 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