[project @ 2000-12-31 16:58:05 by panne]
authorpanne <unknown>
Sun, 31 Dec 2000 16:58:05 +0000 (16:58 +0000)
committerpanne <unknown>
Sun, 31 Dec 2000 16:58:05 +0000 (16:58 +0000)
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

index f3e1a50..d9a5db5 100644 (file)
@@ -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