[project @ 1997-09-05 14:11:05 by simonm]
[ghc-hetmet.git] / ghc / tests / codeGen / should_run / Makefile
1 TOP = ../..
2 include $(TOP)/mk/boilerplate.mk
3
4 HS_SRCS = $(wildcard *.hs)
5 BINS = $(patsubst %.o,%,$(HS_OBJS))
6 RUNTESTS = $(patsubst %,%.run,$(BINS))
7
8 SRC_RUNTEST_OPTS += -o1 $*.stdout -o2 $*.stderr -x 0
9 HC_OPTS += -dcore-lint
10
11 all :: $(BINS) $(RUNTESTS)
12
13 %.run : %
14         $(RUNTEST) $< $(RUNTEST_OPTS)
15
16 % : %.o
17         $(HC) $(HC_OPTS) $< -o $@
18
19 cg012_HC_OPTS = -fglasgow-exts
20 cg015_HC_OPTS = -fglasgow-exts
21 cg018_HC_OPTS = -fglasgow-exts
22 cg026_HC_OPTS = -fglasgow-exts
23 cg029_HC_OPTS = -fglasgow-exts
24 cg030_HC_OPTS = -fglasgow-exts
25 cg031_HC_OPTS = -fglasgow-exts
26 cg032_HC_OPTS = -fglasgow-exts
27 cg033_HC_OPTS = -fglasgow-exts
28 cg035_HC_OPTS = -fglasgow-exts
29 cg042_HC_OPTS = -fglasgow-exts
30
31 cg016_RUNTEST_OPTS = -x 1       # should override the -x 0 above.
32 cg021_RUNTEST_OPTS = +RTS -K2m
33 cg025_RUNTEST_OPTS = -x 1 cg025.hs
34
35 include $(TOP)/mk/target.mk