boilerplate.mk 1.08 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#################################################################################
#
#			    nofib/mk/boilerplate.mk
#
#		Boilerplate Makefile for an fptools project
#
#################################################################################

# Begin by slurping in the boilerplate from one level up, 
# with standard TOP-mangling
# Remember, TOP is the top level of the innermost level

NOFIB_TOP := $(TOP)
TOP := $(TOP)/..
include $(TOP)/mk/boilerplate.mk
TOP:=$(NOFIB_TOP)

Ian Lynagh's avatar
Ian Lynagh committed
18 19 20 21
# Turn off -Werror for nofib. This allows you to use nofib in a tree
# built with validate.
WERROR=

22 23 24 25 26 27 28 29 30 31 32
# -----------------------------------------------------------------
# Everything after this point
# augments or overrides previously set variables.
# (these files are optional, so `make' won't fret if it
#  cannot get to them).
# -----------------------------------------------------------------

WAYS=$(NoFibWays)

SRC_HC_OPTS += $(NoFibHcOpts) -Rghc-timing

33 34 35
HC	   = $(WithNofibHc)
MKDEPENDHS = $(WithNofibHc)  # ToDo: wrong, if $(WithNofibHc) isn't GHC.

36 37
include $(NOFIB_TOP)/mk/paths.mk
include $(NOFIB_TOP)/mk/opts.mk