8aaf049f684437f9fe9093b8186226bd4142d35c
[reactos.git] / reactos / apps / testsets / Makefile
1 #
2 # ReactOS system testsets makefile
3 #
4
5 PATH_TO_TOP = ../..
6
7 include $(PATH_TO_TOP)/rules.mak
8
9
10 # Testset applications
11 TEST_SETS = loadlib
12
13 TEST_KERNEL32 =
14
15 TEST_MSVCRT =
16
17 TEST_COM =
18
19 TEST_SEH =
20
21 TEST_REGRESSIONS =
22
23 all: $(TEST_SETS) $(TEST_KERNEL32) $(TEST_MSVCRT) $(TEST_COM) $(TEST_SEH) $(TEST_REGRESSIONS)
24
25 depends:
26
27 implib: $(TEST_SETS:%=%_implib) \
28 $(TEST_KERNEL32:%=%_implib) \
29 $(TEST_MSVCRT:%=%_implib) \
30 $(TEST_COM:%=%_implib) \
31 $(TEST_SEH:%=%_implib) \
32 $(TEST_REGRESSIONS:%=%_implib)
33
34 clean: $(TEST_SETS:%=%_clean) \
35 $(TEST_KERNEL32:%=%_clean) \
36 $(TEST_MSVCRT:%=%_clean) \
37 $(TEST_COM:%=%_clean) \
38 $(TEST_SEH:%=%_clean) \
39 $(TEST_REGRESSIONS:%=%_clean)
40
41 install: $(TEST_SETS:%=%_install) \
42 $(TEST_KERNEL32:%=%_install) \
43 $(TEST_MSVCRT:%=%_install) \
44 $(TEST_COM:%=%_install) \
45 $(TEST_SEH:%=%_install) \
46 $(TEST_REGRESSIONS:%=%_install)
47
48 dist: $(TEST_SETS:%=%_dist) \
49 $(TEST_KERNEL32:%=%_dist) \
50 $(TEST_MSVCRT:%=%_dist) \
51 $(TEST_COM:%=%_dist) \
52 $(TEST_SEH:%=%_dist) \
53 $(TEST_REGRESSIONS:%=%_dist)
54
55 .PHONY: all depends implib clean install dist
56
57
58 #
59 # Testset Applications
60 #
61 $(TEST_SETS): %:
62 make -C $*
63
64 $(TEST_SETS:%=%_implib): %_implib:
65 make -C $* implib
66
67 $(TEST_SETS:%=%_clean): %_clean:
68 make -C $* clean
69
70 $(TEST_SETS:%=%_dist): %_dist:
71 make -C $* dist
72
73 $(TEST_SETS:%=%_install): %_install:
74 make -C $* install
75
76 .PHONY: $(TEST_SETS) $(TEST_SETS:%=%_implib) $(TEST_SETS:%=%_clean) $(TEST_SETS:%=%_install) $(TEST_SETS:%=%_dist)
77
78
79 #
80 # Kernel32 Test Applications
81 #
82 $(TEST_KERNEL32): %:
83 make -C kernel32/$*
84
85 $(TEST_KERNEL32:%=%_implib): %_implib:
86 make -C kernel32/$* implib
87
88 $(TEST_KERNEL32:%=%_clean): %_clean:
89 make -C kernel32/$* clean
90
91 $(TEST_KERNEL32:%=%_dist): %_dist:
92 make -C kernel32/$* dist
93
94 $(TEST_KERNEL32:%=%_install): %_install:
95 make -C kernel32/$* install
96
97 .PHONY: $(TEST_KERNEL32) $(TEST_KERNEL32:%=%_implib) $(TEST_KERNEL32:%=%_clean) $(TEST_KERNEL32:%=%_install) $(TEST_KERNEL32:%=%_dist)
98
99
100 #
101 # msvcrt Test Applications
102 #
103 $(TEST_MSVCRT): %:
104 make -C msvcrt/$*
105
106 $(TEST_MSVCRT:%=%_implib): %_implib:
107 make -C msvcrt/$* implib
108
109 $(TEST_MSVCRT:%=%_clean): %_clean:
110 make -C msvcrt/$* clean
111
112 $(TEST_MSVCRT:%=%_dist): %_dist:
113 make -C msvcrt/$* dist
114
115 $(TEST_MSVCRT:%=%_install): %_install:
116 make -C msvcrt/$* install
117
118 .PHONY: $(TEST_MSVCRT) $(TEST_MSVCRT:%=%_implib) $(TEST_MSVCRT:%=%_clean) $(TEST_MSVCRT:%=%_install) $(TEST_MSVCRT:%=%_dist)
119
120
121 #
122 # COM Test Applications
123 #
124 $(TEST_COM): %:
125 make -C com/$*
126
127 $(TEST_COM:%=%_implib): %_implib:
128 make -C com/$* implib
129
130 $(TEST_COM:%=%_clean): %_clean:
131 make -C com/$* clean
132
133 $(TEST_COM:%=%_dist): %_dist:
134 make -C com/$* dist
135
136 $(TEST_COM:%=%_install): %_install:
137 make -C com/$* install
138
139 .PHONY: $(TEST_COM) $(TEST_COM:%=%_implib) $(TEST_COM:%=%_clean) $(TEST_COM:%=%_install) $(TEST_COM:%=%_dist)
140
141
142 #
143 # SEH Test Applications
144 #
145 $(TEST_SEH): %:
146 make -C seh/$*
147
148 $(TEST_SEH:%=%_implib): %_implib:
149 make -C seh/$* implib
150
151 $(TEST_SEH:%=%_clean): %_clean:
152 make -C seh/$* clean
153
154 $(TEST_SEH:%=%_dist): %_dist:
155 make -C seh/$* dist
156
157 $(TEST_SEH:%=%_install): %_install:
158 make -C seh/$* install
159
160 .PHONY: $(TEST_SEH) $(TEST_SEH:%=%_implib) $(TEST_SEH:%=%_clean) $(TEST_SEH:%=%_install) $(TEST_SEH:%=%_dist)
161
162
163 #
164 # Regression Test Applications
165 #
166 $(TEST_REGRESSIONS): %:
167 make -C regres/$*
168
169 $(TEST_REGRESSIONS:%=%_implib): %_implib:
170 make -C regres/$* implib
171
172 $(TEST_REGRESSIONS:%=%_clean): %_clean:
173 make -C regres/$* clean
174
175 $(TEST_REGRESSIONS:%=%_dist): %_dist:
176 make -C regres/$* dist
177
178 $(TEST_REGRESSIONS:%=%_install): %_install:
179 make -C regres/$* install
180
181 .PHONY: $(TEST_REGRESSIONS) $(TEST_REGRESSIONS:%=%_implib) $(TEST_REGRESSIONS:%=%_clean) $(TEST_REGRESSIONS:%=%_install) $(TEST_REGRESSIONS:%=%_dist)
182
183
184 etags:
185 find . -name "*.[ch]" -print | etags --language=c -
186
187 # EOF
188