diff options
Diffstat (limited to 'ghc/compiler/tests')
| -rw-r--r-- | ghc/compiler/tests/typecheck/stress/Makefile | 19 | 
1 files changed, 15 insertions, 4 deletions
| diff --git a/ghc/compiler/tests/typecheck/stress/Makefile b/ghc/compiler/tests/typecheck/stress/Makefile index 4782dae0e1..641ad12986 100644 --- a/ghc/compiler/tests/typecheck/stress/Makefile +++ b/ghc/compiler/tests/typecheck/stress/Makefile @@ -1,5 +1,16 @@ -TOP = ../../../../.. -GhcRunTestRules = YES -include $(TOP)/ghc/mk/ghc.mk +TOP = ../../../.. +include $(TOP)/mk/boilerplate.mk -runtests :: $(patsubst %.hs, %.runtest, $(wildcard *.hs)) +HS_SRCS = $(wildcard *.hs) + +SRC_RUNTEST_OPTS += -o1 $*.stdout -o2 $*.stderr -x 0 +HC_OPTS += -noC -ddump-tc -dcore-lint -hi + +%.o : %.hs + +%.o : %.hs +	$(RUNTEST) $(HC) $(RUNTEST_OPTS) -- $(HC_OPTS) -c $< -o $@ -osuf $(subst .,,$(suffix $@))  + +all :: $(HS_OBJS) + +include $(TOP)/mk/target.mk | 
