bf7108a333f8673fdd2dcef9073e1cf6747b6aba
[ghc.git] / testsuite / tests / ghc-api / annotations / Makefile
1 TOP=../../..
2 include $(TOP)/mk/boilerplate.mk
3 include $(TOP)/mk/test.mk
4
5 clean:
6 rm -f *.o *.hi
7 rm -f annotations comments parseTree exampleTest
8
9 annotations:
10 rm -f annotations.o annotations.hi
11 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc annotations
12 ./annotations "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
13
14 parseTree:
15 rm -f parseTree.o parseTree.hi
16 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc parseTree
17 ./parseTree "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
18
19 comments:
20 rm -f comments.o comments.hi
21 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc comments
22 ./comments "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
23
24 exampleTest:
25 rm -f exampleTest.o exampleTest.hi
26 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc exampleTest
27 ./exampleTest "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
28
29 listcomps:
30 rm -f listcomps.o listcomps.hi
31 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc listcomps
32 ./listcomps "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
33
34 t10255:
35 rm -f t10255.o t10255.hi
36 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc t10255
37 ./t10255 "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
38
39 .PHONY: clean annotations parseTree comments exampleTest listcomps t10255
40
41 T10268:
42 rm -f t10268.o t10268.hi
43 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc t10268
44 ./t10268 "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
45
46 T10278:
47 rm -f t10278.o t10278.hi
48 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc t10278
49 ./t10278 "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
50
51 .PHONY: clean annotations parseTree comments exampleTest listcomps