From 5acd2909936a1e56db8386ebccf66e0347012ad6 Mon Sep 17 00:00:00 2001 From: panne Date: Sun, 31 Dec 2000 16:58:05 +0000 Subject: [PATCH] [project @ 2000-12-31 16:58:05 by panne] Automagically add a GHC #define. These are the final changes to get a bootstrapping GHC without a build.mk, thus enabling people (like me :-) who forget obscure options quite often to build GHC painlessly. Happy New Year! --- ghc/rts/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ghc/rts/Makefile b/ghc/rts/Makefile index f3e1a50..d9a5db5 100644 --- a/ghc/rts/Makefile +++ b/ghc/rts/Makefile @@ -1,5 +1,5 @@ #----------------------------------------------------------------------------- -# $Id: Makefile,v 1.41 2000/11/14 10:56:08 simonmar Exp $ +# $Id: Makefile,v 1.42 2000/12/31 16:58:05 panne Exp $ # # This is the Makefile for the runtime-system stuff. # This stuff is written in C (and cannot be written in Haskell). @@ -62,6 +62,11 @@ WARNING_OPTS += -optc-Wbad-function-cast SRC_HC_OPTS += -I../includes -I. -Iparallel $(WARNING_OPTS) $(GhcRtsHcOpts) -optc-DCOMPILING_RTS SRC_CC_OPTS = $(GhcRtsCcOpts) +ifeq "$(GhcWithInterpreter)" "YES" +SRC_HC_OPTS += -optc-DGHCI +SRC_CC_OPTS += -DGHCI +endif + ifneq "$(DLLized)" "YES" SRC_HC_OPTS += -static endif -- 1.7.10.4