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))
17 # $3 = GHC stage to use (0 == bootstrapping compiler)
19 ifneq "$$(NO_INCLUDE_DEPS)" "YES"
20 ifneq "$$(strip $$($1_$2_HS_SRCS) $$($1_$2_HS_BOOT_SRCS))" ""
21 ifneq "$$(NO_STAGE$3_DEPS)" "YES"
22 include $$($1_$2_depfile_haskell)
25 include $$($1_$2_depfile_c_asm)
27 ifeq "$$(DEBUG)" "YES"
28 $$(warning not building dependencies in $1)