diff options
Diffstat (limited to 'testsuite/tests/driver/sigof01/Makefile')
-rw-r--r-- | testsuite/tests/driver/sigof01/Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/tests/driver/sigof01/Makefile b/testsuite/tests/driver/sigof01/Makefile new file mode 100644 index 0000000000..a54a1b97e4 --- /dev/null +++ b/testsuite/tests/driver/sigof01/Makefile @@ -0,0 +1,23 @@ +TOP=../../.. +include $(TOP)/mk/boilerplate.mk +include $(TOP)/mk/test.mk + +# -fforce-recomp makes lots of driver tests trivially pass, so we +# filter it out from $(TEST_HC_OPTS). +TEST_HC_OPTS_NO_RECOMP = $(filter-out -fforce-recomp,$(TEST_HC_OPTS)) + +S01_OPTS=$(TEST_HC_OPTS_NO_RECOMP) -outputdir tmp_sigof01 -i -itmp_sigof01 +sigof01: + rm -rf tmp_sigof01 + mkdir tmp_sigof01 + '$(TEST_HC)' $(S01_OPTS) -c A.hs + '$(TEST_HC)' $(S01_OPTS) -c B.hsig -sig-of main:A + '$(TEST_HC)' $(S01_OPTS) -c Main.hs + '$(TEST_HC)' $(S01_OPTS) tmp_sigof01/A.o tmp_sigof01/Main.o -o tmp_sigof01/Main + tmp_sigof01/Main + +sigof01m: + rm -rf tmp_sigof01m + mkdir tmp_sigof01m + '$(TEST_HC)' $(TEST_HC_OPTS_NO_RECOMP) -outputdir tmp_sigof01m --make Main.hs -sig-of "B is main:A" -o tmp_sigof01m/Main + tmp_sigof01m/Main |