Add a skeleton libraries directory
[ghc-hetmet.git] / libraries / mk / boilerplate.mk
diff --git a/libraries/mk/boilerplate.mk b/libraries/mk/boilerplate.mk
new file mode 100644 (file)
index 0000000..a9c22bc
--- /dev/null
@@ -0,0 +1,34 @@
+# -----------------------------------------------------------------------------
+# $Id: boilerplate.mk,v 1.1 2001/07/31 16:40:34 simonmar Exp $
+
+# Begin by slurping in the boilerplate from one level up.
+# Remember, TOP is the top level of the innermost level
+# (FPTOOLS_TOP is the fptools top)
+
+# We need to set TOP to be the TOP that the next level up expects!
+# The TOP variable is reset after the inclusion of the fptools
+# boilerplate, so we stash TOP away first:
+LIBRARIES_TOP := $(TOP)
+TOP:=$(TOP)/..
+
+# Also set GHC_TOP here, because we need to get at bits of GHC's config
+GHC_TOP := $(TOP)/ghc
+
+# Pull in GHC's version & project info
+-include $(GHC_TOP)/mk/version.mk
+
+# Pull in the fptools boilerplate
+include $(TOP)/mk/boilerplate.mk
+
+# Reset TOP
+TOP:=$(LIBRARIES_TOP)
+
+# -----------------------------------------------------------------
+# Everything after this point
+# augments or overrides previously set variables.
+
+-include $(GHC_TOP)/mk/paths.mk
+
+-include $(TOP)/mk/paths.mk
+-include $(TOP)/mk/opts.mk
+-include $(TOP)/mk/suffix.mk