[project @ 2003-08-19 22:04:54 by krc]
[ghc-hetmet.git] / ghc / includes / Makefile
index 12d384a..e0f4b90 100644 (file)
@@ -1,5 +1,5 @@
 # -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.19 2002/02/11 13:59:01 simonmar Exp $
+# $Id: Makefile,v 1.21 2003/03/21 15:45:56 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
@@ -78,7 +85,7 @@ mkDerivedConstantsHdr : mkDerivedConstants.o
 DerivedConstants.h : mkDerivedConstantsHdr
        ./mkDerivedConstantsHdr >DerivedConstants.h
 
-CLEAN_FILES += mkDerivedConstantsHdr DerivedConstants.h
+CLEAN_FILES += mkDerivedConstantsHdr$(exeext) DerivedConstants.h
 
 # ---------------------------------------------------------------------------
 # Make NativeDefs.h for the NCG
@@ -93,7 +100,7 @@ mkNativeHdr : mkNativeHdr.o
 NativeDefs.h : mkNativeHdr
        ./mkNativeHdr >NativeDefs.h
 
-CLEAN_FILES += mkNativeHdr NativeDefs.h
+CLEAN_FILES += mkNativeHdr$(exeext) NativeDefs.h
 
 # ---------------------------------------------------------------------------
 # boot setup: