929ced279909532f1e309e8bb820fb17f85643fb
[ghc-hetmet.git] / ghc / tests / mk / should_compile.mk
1 #-----------------------------------------------------------------------------
2 # template for should_compile tests.
3
4 HS_SRCS = $(wildcard *.hs)
5
6 SRC_RUNTEST_OPTS += -x 0 \
7         $(foreach i,$(wildcard $*.stdout),-o1 $(i)) \
8         $(foreach i,$(wildcard $*.stderr),-o2 $(i))
9
10 %.o : %.hs
11         @echo ---- Testing for successful compilation of $<
12         @$(RUNTEST) $(HC) $(RUNTEST_OPTS) -- $(HC_OPTS) -c $< -o $@
13
14 all :: $(HS_OBJS)
15