[project @ 1997-03-14 07:52:06 by simonpj]
[ghc-hetmet.git] / ghc / mk / boilerplate.mk
1 #################################################################################
2 #
3 #                           GHC boilerplate.mk
4 #
5 #               Boilerplate Makefile for an fptools project
6 #
7 #################################################################################
8
9 # Begin by slurping in the boilerplate from one level up.
10 # Remember, TOP is the top level of the innermost level
11 # (FPTOOLS_TOP is the fptools top)
12
13 # We need to set TOP to be the TOP that the next level up expects!
14 # The TOP variable is reset after the inclusion of the fptools
15 # boilerplate, so we stash TOP away first:
16 GHC_TOP := $(TOP)
17 TOP:=$(TOP)/..
18
19 include $(TOP)/mk/boilerplate.mk
20
21 # Reset TOP
22 TOP:=$(GHC_TOP)
23
24 # -----------------------------------------------------------------
25 # Everything after this point
26 # augments or overrides previously set variables.
27 # (these files are optional, so `make' won't fret if
28 #  cannot get to them).
29 # -----------------------------------------------------------------
30
31 -include $(TOP)/mk/paths.mk
32 -include $(TOP)/mk/opts.mk
33 include $(TOP)/mk/suffix.mk
34