[project @ 2002-02-12 05:01:26 by sof]
authorsof <unknown>
Tue, 12 Feb 2002 05:01:26 +0000 (05:01 +0000)
committersof <unknown>
Tue, 12 Feb 2002 05:01:26 +0000 (05:01 +0000)
bring stuff in parallel/ into scope when running 'mkdependC'

ghc/rts/Makefile

index c8f21ce..ac9d823 100644 (file)
@@ -1,5 +1,5 @@
 #-----------------------------------------------------------------------------
-# $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).
@@ -77,13 +77,18 @@ WARNING_OPTS += -Wcast-align
 #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)
 
-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)