7cd65199889cc14fe1b65b65999e3dafc596c687
[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 rm -f t10269
9 rm -f t10255 t10312
10 rm -f t1037
11 rm -f t10309
12 rm -f listcomps boolFormula
13 rm -f t10357
14
15 annotations:
16 rm -f annotations.o annotations.hi
17 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc annotations
18 ./annotations "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
19
20 parseTree:
21 rm -f parseTree.o parseTree.hi
22 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc parseTree
23 ./parseTree "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
24
25 comments:
26 rm -f comments.o comments.hi
27 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc comments
28 ./comments "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
29
30 exampleTest:
31 rm -f exampleTest.o exampleTest.hi
32 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc exampleTest
33 ./exampleTest "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
34
35 listcomps:
36 rm -f listcomps.o listcomps.hi
37 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc listcomps
38 ./listcomps "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
39
40 t10358:
41 rm -f t10358.o t10358.hi
42 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc t10358
43 ./t10358 "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
44
45 .PHONY: t10358
46
47 t10255:
48 rm -f t10255.o t10255.hi
49 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc t10255
50 ./t10255 "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
51
52 t10357:
53 rm -f t10357.o t10357.hi
54 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc t10357
55 ./t10357 "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
56
57 .PHONY: t10357
58
59 .PHONY: clean annotations parseTree comments exampleTest listcomps t10255
60
61 T10268:
62 rm -f t10268.o t10268.hi
63 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc t10268
64 ./t10268 "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
65
66 T10280:
67 rm -f t10280.o t10280.hi
68 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc t10280
69 ./t10280 "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
70
71 .PHONY: clean annotations parseTree comments exampleTest listcomps
72
73 T10269:
74 rm -f T10269.o T10269.hi
75 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc t10269
76 ./t10269 "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
77
78 .PHONY: t10269
79
80 t10312:
81 rm -f t10312.o t10312.hi
82 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc t10312
83 ./t10312 "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
84
85 .PHONY: clean annotations parseTree comments exampleTest listcomps t10255 t10312
86
87 t10307:
88 rm -f t10307.o t10307.hi
89 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc t10307
90 ./t10307 "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
91
92 .PHONY: t10307
93
94 t10309:
95 rm -f t10309.o t10309.hi
96 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc t10309
97 ./t10309 "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
98
99 .PHONY: t10309
100
101 boolFormula:
102 rm -f boolFormula.o boolFormula.hi
103 # Disable all warnings to make sure boolFormula.stderr is repeatable
104 '$(TEST_HC)' $(TEST_HC_OPTS) --make -w -v0 -package ghc boolFormula
105 ./boolFormula "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
106
107 .PHONY: clean annotations parseTree comments exampleTest listcomps boolFormula