# -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.18 2001/11/21 16:56:19 sof Exp $
+# $Id: Makefile,v 1.20 2002/03/02 17:49:42 sof Exp $
#
TOP = ..
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
@echo "Done."
# ---------------------------------------------------------------------------
-# Make NativeDefs.h for the NCG
+# Make DerivedConstants.h for the compiler
all :: DerivedConstants.h
+mkDerivedConstants.c : $(H_CONFIG)
+
mkDerivedConstantsHdr : mkDerivedConstants.o
$(CC) -o $@ $(CC_OPTS) $(LD_OPTS) mkDerivedConstants.o