summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-01-21 23:02:45 +0000
committerIan Lynagh <igloo@earth.li>2011-01-21 23:02:45 +0000
commit2e9fee4031b2203927d2483ab7e212557d9af99b (patch)
tree21587a3c2a3d0b118087af34d9282bc24b27c3f1
parenta59f5d6552674928879cae0d225e6052876d5ca4 (diff)
downloadhaskell-2e9fee4031b2203927d2483ab7e212557d9af99b.tar.gz
Remove some hardcoded makefile settings
Now that we used cabal to configure the ghc-bin package they are no longer needed.
-rw-r--r--ghc/ghc-bin.cabal.in2
-rw-r--r--ghc/ghc.mk19
2 files changed, 2 insertions, 19 deletions
diff --git a/ghc/ghc-bin.cabal.in b/ghc/ghc-bin.cabal.in
index a0915b3c56..648118011e 100644
--- a/ghc/ghc-bin.cabal.in
+++ b/ghc/ghc-bin.cabal.in
@@ -35,6 +35,8 @@ Executable ghc
else
Build-Depends: unix
+ C-Sources: hschooks.c
+
GHC-Options: -Wall
if flag(ghci)
CPP-Options: -DGHCI
diff --git a/ghc/ghc.mk b/ghc/ghc.mk
index a9b6005cdf..d0c5ce8d46 100644
--- a/ghc/ghc.mk
+++ b/ghc/ghc.mk
@@ -52,29 +52,10 @@ ifeq "$(GhcProfiled)" "YES"
ghc_stage2_MORE_HC_OPTS += -prof
endif
-ghc_stage1_MODULES = Main
-
-ghc_stage2_MODULES = $(ghc_stage1_MODULES)
-ifeq "$(GhcWithInterpreter)" "YES"
-ghc_stage2_MODULES += GhciMonad GhciTags InteractiveUI
-endif
-ghc_stage3_MODULES = $(ghc_stage2_MODULES)
-
-ghc_stage1_C_SRCS = hschooks.c
-ghc_stage2_C_SRCS = hschooks.c
-ghc_stage3_C_SRCS = hschooks.c
-
ghc_stage1_PROG = ghc-stage1$(exeext)
ghc_stage2_PROG = ghc-stage2$(exeext)
ghc_stage3_PROG = ghc-stage3$(exeext)
-# ToDo: perhaps use ghc-cabal to configure ghc-bin
-ghc_stage1_MORE_HC_OPTS += -package $(compiler_PACKAGE)-$(compiler_stage1_VERSION)
-ghc_stage2_MORE_HC_OPTS += -package $(compiler_PACKAGE)-$(compiler_stage2_VERSION)
-ghc_stage3_MORE_HC_OPTS += -package $(compiler_PACKAGE)-$(compiler_stage3_VERSION)
-ghc_stage2_MORE_HC_OPTS += -package haskeline
-ghc_stage3_MORE_HC_OPTS += -package haskeline
-
ghc_stage1_SHELL_WRAPPER = YES
ghc_stage2_SHELL_WRAPPER = YES
ghc_stage3_SHELL_WRAPPER = YES