Fold ghc-prim.git into ghc.git (re #8545)
[ghc.git] / testsuite / tests / th / Makefile
1 TOP=../..
2 include $(TOP)/mk/boilerplate.mk
3 include $(TOP)/mk/test.mk
4
5 # Trac 2386 requires batch-compile not --make
6 # Very important: without -O
7 T2386:
8 '$(TEST_HC)' $(TEST_HC_OPTS) $(ghcThWayFlags) -v0 -c T2386_Lib.hs
9 '$(TEST_HC)' $(TEST_HC_OPTS) $(ghcThWayFlags) -v0 -c T2386.hs
10
11 T7445:
12 '$(TEST_HC)' $(TEST_HC_OPTS) $(ghcThWayFlags) -v0 -c T7445a.hs
13 '$(TEST_HC)' $(TEST_HC_OPTS) $(ghcThWayFlags) -v0 -c T7445.hs
14
15 HC_OPTS = -XTemplateHaskell -package template-haskell
16
17 TH_spliceE5_prof::
18 $(RM) TH_spliceE5_prof*.o TH_spliceE5_prof*.hi TH_spliceE5_prof*.p.o
19 '$(TEST_HC)' $(TEST_HC_OPTS) $(HC_OPTS) --make -v0 TH_spliceE5_prof.hs -c
20 '$(TEST_HC)' $(TEST_HC_OPTS) $(HC_OPTS) --make -v0 TH_spliceE5_prof.hs -prof -auto-all -osuf p.o -o $@
21 ./$@
22
23 .PHONY: TH_Depends
24 TH_Depends:
25 $(RM) TH_Depends_external.txt
26 $(RM) TH_Depends TH_Depends.exe
27 $(RM) TH_Depends.o TH_Depends.hi
28 $(RM) TH_Depends_External.o TH_Depends_External.hi
29 echo "first run" > TH_Depends_external.txt
30 '$(TEST_HC)' $(TEST_HC_OPTS) $(ghcThWayFlags) --make -v0 TH_Depends
31 ./TH_Depends
32 sleep 2
33 echo "second run" > TH_Depends_external.txt
34 '$(TEST_HC)' $(TEST_HC_OPTS) $(ghcThWayFlags) --make -v0 TH_Depends
35 ./TH_Depends
36
37
38 T8333:
39 '$(TEST_HC)' $(TEST_HC_OPTS) $(ghcThWayFlags) --interactive -v0 T8333.hs < /dev/null