[project @ 1999-06-23 10:42:07 by simonmar]
[ghc-hetmet.git] / ghc / tests / reader / should_compile / Makefile
index fe5fca9..71c4f4f 100644 (file)
@@ -1,22 +1,13 @@
-TOP = ../../..
+TOP = ../..
 include $(TOP)/mk/boilerplate.mk
+include $(TOP)/mk/should_compile.mk
 
+SRC_HC_OPTS += -noC -dcore-lint
 
-HS_SRCS = $(wildcard *.hs)
-SRC_RUNTEST_OPTS += -accept-output -o1 $*.stdout -o2 $*.stderr -x 1
-HC_OPTS += -noC -dcore-lint
-
-read002_RUNTEST_OPTS = -x 0
-
-%.o : %.hs
-
-%.o : %.hs
-       $(RUNTEST) $(HC) $(RUNTEST_OPTS) $(HC_OPTS) -c $< -o $@ -osuf $(subst .,,$(suffix $@)) 
-
-all :: $(HS_OBJS)
-
-read001_HC_OPTS = -noC -ddump-rdr
-read002_HC_OPTS = -noC -ddump-rdr
-read004_HC_OPTS = -noC -fno-implicit-prelude -ddump-rdr
+read004_HC_OPTS = -fno-implicit-prelude
+read012_HC_OPTS += -O -funfold-casms-in-hi-file -fglasgow-exts -ohi T1.hi
+read013_HC_OPTS += -O -funfold-casms-in-hi-file -fglasgow-exts
+read014_HC_OPTS += -Wall
+read022_HC_OPTS = -fglasgow-exts
 
 include $(TOP)/mk/target.mk