Add a skeleton libraries directory
[ghc-hetmet.git] / libraries / mk / boilerplate.mk
1 # -----------------------------------------------------------------------------
2 # $Id: boilerplate.mk,v 1.1 2001/07/31 16:40:34 simonmar Exp $
3
4 # Begin by slurping in the boilerplate from one level up.
5 # Remember, TOP is the top level of the innermost level
6 # (FPTOOLS_TOP is the fptools top)
7
8 # We need to set TOP to be the TOP that the next level up expects!
9 # The TOP variable is reset after the inclusion of the fptools
10 # boilerplate, so we stash TOP away first:
11 LIBRARIES_TOP := $(TOP)
12 TOP:=$(TOP)/..
13
14 # Also set GHC_TOP here, because we need to get at bits of GHC's config
15 GHC_TOP := $(TOP)/ghc
16
17 # Pull in GHC's version & project info
18 -include $(GHC_TOP)/mk/version.mk
19
20 # Pull in the fptools boilerplate
21 include $(TOP)/mk/boilerplate.mk
22
23 # Reset TOP
24 TOP:=$(LIBRARIES_TOP)
25
26 # -----------------------------------------------------------------
27 # Everything after this point
28 # augments or overrides previously set variables.
29
30 -include $(GHC_TOP)/mk/paths.mk
31
32 -include $(TOP)/mk/paths.mk
33 -include $(TOP)/mk/opts.mk
34 -include $(TOP)/mk/suffix.mk