diff options
Diffstat (limited to 'testsuite/tests/driver/recomp008/Makefile')
-rw-r--r-- | testsuite/tests/driver/recomp008/Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/testsuite/tests/driver/recomp008/Makefile b/testsuite/tests/driver/recomp008/Makefile new file mode 100644 index 0000000000..3e598ae9f1 --- /dev/null +++ b/testsuite/tests/driver/recomp008/Makefile @@ -0,0 +1,28 @@ +TOP=../../.. +include $(TOP)/mk/boilerplate.mk +include $(TOP)/mk/test.mk + +Main.o : B.hi +B.o : A.hi + +%.o : %.hs + '$(TEST_HC)' $(TEST_HC_OPTS) -O -c $< -o $@ + +# magic .hi rule: see rules/hi-rule.mk in the GHC source tree +%.hi : %.o ; + +prog : A.o B.o Main.o + '$(TEST_HC)' $(TEST_HC_OPTS) -o prog A.o B.o Main.o + +clean : + $(RM) *.hi *.o prog + +recomp008 : + $(MAKE) clean + cp A1.hs A.hs + $(MAKE) prog + ./prog + sleep 1 + cp A2.hs A.hs + $(MAKE) prog + ./prog |