[project @ 1999-09-16 19:37:58 by sof]
[ghc-hetmet.git] / ghc / tests / codeGen / should_run / Makefile
index 8f072b0..b712aba 100644 (file)
@@ -1,24 +1,16 @@
+#-----------------------------------------------------------------------------
+# $Id: Makefile,v 1.9 1999/09/16 19:37:58 sof Exp $
+
 TOP = ../..
 include $(TOP)/mk/boilerplate.mk
+include $(TOP)/mk/should_run.mk
 
-HS_SRCS = $(wildcard *.hs)
-BINS = $(patsubst %.o,%,$(HS_OBJS))
-RUNTESTS = $(patsubst %,%.run,$(BINS))
-
-SRC_RUNTEST_OPTS += -o1 $*.stdout -o2 $*.stderr -x 0
-HC_OPTS += -dcore-lint
-
-all :: $(BINS) $(RUNTESTS)
-
-%.run : %
-       $(RUNTEST) $< $(RUNTEST_OPTS)
-
-% : %.o
-       $(HC) $(HC_OPTS) $< -o $@
+SRC_HC_OPTS += -dcore-lint
 
 cg012_HC_OPTS = -fglasgow-exts
 cg015_HC_OPTS = -fglasgow-exts
 cg018_HC_OPTS = -fglasgow-exts
+cg025_HC_OPTS = -fglasgow-exts
 cg026_HC_OPTS = -fglasgow-exts
 cg029_HC_OPTS = -fglasgow-exts
 cg030_HC_OPTS = -fglasgow-exts
@@ -27,9 +19,19 @@ cg032_HC_OPTS = -fglasgow-exts
 cg033_HC_OPTS = -fglasgow-exts
 cg035_HC_OPTS = -fglasgow-exts
 cg042_HC_OPTS = -fglasgow-exts
+cg044_HC_OPTS = -fglasgow-exts
 
 cg016_RUNTEST_OPTS = -x 1      # should override the -x 0 above.
 cg021_RUNTEST_OPTS = +RTS -K2m
 cg025_RUNTEST_OPTS = -x 1 cg025.hs
+cg045_RUNTEST_OPTS = -x 1
+
+# mkdependHS doesn't understand OPTIONS pragmas...
+SRC_MKDEPENDHS_OPTS += -fglasgow-exts
+
+.PRECIOUS: %.bin %.o
+
+clean ::
+       rm -f *.bin *.o
 
 include $(TOP)/mk/target.mk