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 # -----------------------------------------------------------------------------
14 $(call trace, dependencies($1,$2,$3))
15 $(call profStart, dependencies($1,$2,$3))
18 # $3 = GHC stage to use (0 == bootstrapping compiler)
20 # We always have the dependency rules available, as we need to know
21 # how to build hsc2hs's dependency file in phase 0
22 $(call build-dependencies,$1,$2,$3)
25 # From phase 1 we actually include the dependency files for the
28 $(call include-dependencies,$1,$2,$3)
29 else ifeq "$(phase)" "final"
30 # In the final phase, we also include the dependency files for
32 $(call include-dependencies,$1,$2,$3)
36 $(call profEnd, dependencies($1,$2,$3))