[project @ 2002-03-02 17:49:42 by sof]
authorsof <unknown>
Sat, 2 Mar 2002 17:49:42 +0000 (17:49 +0000)
committersof <unknown>
Sat, 2 Mar 2002 17:49:42 +0000 (17:49 +0000)
Add the CPP flags used by an unregisterised build
when compiling the .h generating utilities herein.
As was, info table size was wrongly computed in
the unregisterised case.

ghc/includes/Makefile

index 12d384a..132c07c 100644 (file)
@@ -1,5 +1,5 @@
 # -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.19 2002/02/11 13:59:01 simonmar Exp $
+# $Id: Makefile,v 1.20 2002/03/02 17:49:42 sof Exp $
 #
 
 TOP = ..
@@ -11,6 +11,13 @@ include $(TOP)/mk/boilerplate.mk
 H_FILES = $(filter-out gmp.h,$(wildcard *.h)) gmp.h
 
 #
+# Options -- if we're building unregisterised, add a couple of -D's
+#
+ifeq "$(GhcUnregisterised)" "YES"
+SRC_CC_OPTS += -DNO_REGS -DUSE_MINIINTERPRETER
+endif
+
+#
 # Header file built from the configure script's findings
 #
 H_CONFIG = config.h