[project @ 1999-03-16 13:20:07 by simonm]
[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 += -o1 $*.stdout -o2 $*.stderr -x 0
7
8 %.o : %.hs
9         @echo ---- Testing for successful compilation of $<
10         @$(RUNTEST) $(HC) $(RUNTEST_OPTS) -- $(HC_OPTS) -c $< -o $@
11
12 all :: $(HS_OBJS)
13