1 # -----------------------------------------------------------------------------
3 # (c) 2009 The University of Glasgow
5 # This file is part of the GHC build system.
7 # To understand how the build system works and how to modify it, see
8 # http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture
9 # http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying
11 # -----------------------------------------------------------------------------
13 define include-dependencies
14 $(call trace, include-dependencies($1,$2,$3))
15 $(call profStart, include-dependencies($1,$2,$3))
18 # $3 = GHC stage to use (0 == bootstrapping compiler)
20 ifneq "$$(NO_INCLUDE_DEPS)" "YES"
21 ifneq "$$(strip $$($1_$2_HS_SRCS) $$($1_$2_HS_BOOT_SRCS))" ""
22 ifneq "$$(NO_STAGE$3_DEPS)" "YES"
23 include $$($1_$2_depfile_haskell)
26 include $$($1_$2_depfile_c_asm)
28 ifeq "$$(DEBUG)" "YES"
29 $$(warning not building dependencies in $1)
33 $(call profEnd, include-dependencies($1,$2,$3))