If necessary, define THREADED_RTS and DEBUG when gen'ing rts.conf
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
-# $Id: Makefile,v 1.68 2002/02/14 17:17:08 sof Exp $
+# $Id: Makefile,v 1.69 2002/02/18 17:26:48 sof Exp $
#
# This is the Makefile for the runtime-system stuff.
# This stuff is written in C (and cannot be written in Haskell).
#
# This is the Makefile for the runtime-system stuff.
# This stuff is written in C (and cannot be written in Haskell).
ifeq "$(GhcRtsThreaded)" "YES"
ifeq "$(way)" ""
SRC_CC_OPTS += -DTHREADED_RTS
ifeq "$(GhcRtsThreaded)" "YES"
ifeq "$(way)" ""
SRC_CC_OPTS += -DTHREADED_RTS
+PACKAGE_CPP_OPTS += -DTHREADED_RTS
+# If -DDEBUG is in effect, adjust package conf accordingly..
+ifneq "$(strip $(filter -DDEBUG,$(CC_OPTS)))" ""
+PACKAGE_CPP_OPTS += -DDEBUG
+endif
+
#-----------------------------------------------------------------------------
# Include the Front panel code?
#-----------------------------------------------------------------------------
# Include the Front panel code?
Package {
name = "rts", /* The RTS is just another package! */
Package {
name = "rts", /* The RTS is just another package! */