[project @ 1997-07-26 10:07:31 by sof]
[ghc.git] / ghc / tests / mk / boilerplate.mk
1 #################################################################################
2 #
3 # ghc/tests/mk/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 # 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 )
14
15 TEST_TOP := $(TOP)
16 TOP := $(TOP)/..
17 include $(TOP)/mk/boilerplate.mk
18 TOP:=$(TEST_TOP)
19
20
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 # -----------------------------------------------------------------
27
28
29 # Define TEST_PROG. In ..../nofib/imaginary/exp3_8, PROG is exp3_8 by default.
30 #
31 TEST_PROG = $(notdir $(shell pwd))$(_way)
32
33 # Eventually, have the binary purged
34 CLEAN_FILES += $(TEST_PROG)
35