1 #################################################################################
3 # ghc/tests/programs/mk/boilerplate.mk
5 # Boilerplate Makefile for an fptools project
7 #################################################################################
9 # Begin by slurping in the boilerplate from one level up,
10 # with standard TOP-mangling
11 # Remember, TOP is the top level of the innermost level
12 # ( FPTOOLS_TOP, which will be set while processing
13 # toplevel boilerplate, is the fptools top )
15 TEST_PROGRAMS_TOP := $(TOP)
17 include $(TOP)/mk/boilerplate.mk
18 TOP:=$(TEST_PROGRAMS_TOP)
21 # -----------------------------------------------------------------
22 # Everything after this point
23 # augments or overrides previously set variables.
24 # (these files are optional, so `make' won't fret if it
25 # cannot get to them).
26 # -----------------------------------------------------------------
29 # Define TEST_PROG. In ..../nofib/imaginary/exp3_8, PROG is exp3_8 by default.
31 TEST_PROG = $(notdir $(shell pwd))$(_way)
33 # Eventually, have the binary purged
34 CLEAN_FILES += $(TEST_PROG)