bring stuff in parallel/ into scope when running 'mkdependC'
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
-# $Id: Makefile,v 1.64 2002/02/07 10:20:05 simonmar Exp $
+# $Id: Makefile,v 1.65 2002/02/12 05:01:26 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).
#WARNING_OPTS += -Wredundant-decls
#WARNING_OPTS += -Wconversion
#WARNING_OPTS += -Wredundant-decls
#WARNING_OPTS += -Wconversion
+STANDARD_OPTS+=-I../includes -I. -Iparallel -DCOMPILING_RTS
+
# HC_OPTS is included in both .c and .hc compilations, whereas CC_OPTS is
# only included in .c compilations. HC_OPTS included the WAY_* opts, which
# must be included in both types of compilations.
SRC_CC_OPTS += $(WARNING_OPTS)
# HC_OPTS is included in both .c and .hc compilations, whereas CC_OPTS is
# only included in .c compilations. HC_OPTS included the WAY_* opts, which
# must be included in both types of compilations.
SRC_CC_OPTS += $(WARNING_OPTS)
-SRC_HC_OPTS += -I../includes -I. -Iparallel -DCOMPILING_RTS
+# Don't bother adding these to CC_OPTS; get them via HC_OPTS anyway.
+SRC_MKDEPENDC_OPTS += $(STANDARD_OPTS)
+
+SRC_HC_OPTS += $(STANDARD_OPTS)
SRC_CC_OPTS += $(GhcRtsCcOpts)
SRC_HC_OPTS += $(GhcRtsHcOpts)
SRC_CC_OPTS += $(GhcRtsCcOpts)
SRC_HC_OPTS += $(GhcRtsHcOpts)