[Tizen] Support Autoconf 2.71
[platform/upstream/SDL.git] / test / Makefile.in
1 # Makefile to build the SDL tests
2
3 srcdir  = @srcdir@
4
5 CC      = @CC@
6 EXE     = @EXE@
7 CFLAGS  = @CFLAGS@ -g
8 LIBS    = @LIBS@
9
10 TARGETS = \
11         checkkeys$(EXE) \
12         controllermap$(EXE) \
13         loopwave$(EXE) \
14         loopwavequeue$(EXE) \
15         testatomic$(EXE) \
16         testaudiocapture$(EXE) \
17         testaudiohotplug$(EXE) \
18         testaudioinfo$(EXE) \
19         testautomation$(EXE) \
20         testbounds$(EXE) \
21         testcustomcursor$(EXE) \
22         testdisplayinfo$(EXE) \
23         testdraw2$(EXE) \
24         testdrawchessboard$(EXE) \
25         testdropfile$(EXE) \
26         testerror$(EXE) \
27         testevdev$(EXE) \
28         testfile$(EXE) \
29         testfilesystem$(EXE) \
30         testgamecontroller$(EXE) \
31         testgesture$(EXE) \
32         testhaptic$(EXE) \
33         testhittesting$(EXE) \
34         testhotplug$(EXE) \
35         testiconv$(EXE) \
36         testime$(EXE) \
37         testintersections$(EXE) \
38         testjoystick$(EXE) \
39         testkeys$(EXE) \
40         testloadso$(EXE) \
41         testlocale$(EXE) \
42         testlock$(EXE) \
43         testmessage$(EXE) \
44         testmultiaudio$(EXE) \
45         testnative$(EXE) \
46         testoverlay2$(EXE) \
47         testplatform$(EXE) \
48         testpower$(EXE) \
49         testqsort$(EXE) \
50         testrelative$(EXE) \
51         testrendercopyex$(EXE) \
52         testrendertarget$(EXE) \
53         testresample$(EXE) \
54         testrumble$(EXE) \
55         testscale$(EXE) \
56         testsem$(EXE) \
57         testsensor$(EXE) \
58         testshape$(EXE) \
59         testsprite2$(EXE) \
60         testspriteminimal$(EXE) \
61         teststreaming$(EXE) \
62         testthread$(EXE) \
63         testtimer$(EXE) \
64         testurl$(EXE) \
65         testver$(EXE) \
66         testviewport$(EXE) \
67         testvulkan$(EXE) \
68         testwm2$(EXE) \
69         testyuv$(EXE) \
70         torturethread$(EXE) \
71
72         
73 @OPENGL_TARGETS@ += testgl2$(EXE) testshader$(EXE)
74 @OPENGLES1_TARGETS@ += testgles$(EXE)
75 @OPENGLES2_TARGETS@ += testgles2$(EXE)
76
77
78 all: Makefile $(TARGETS) copydatafiles
79
80 Makefile: $(srcdir)/Makefile.in
81         $(SHELL) config.status $@
82
83 checkkeys$(EXE): $(srcdir)/checkkeys.c
84         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
85
86 loopwave$(EXE): $(srcdir)/loopwave.c
87         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
88
89 loopwavequeue$(EXE): $(srcdir)/loopwavequeue.c
90         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
91
92 testresample$(EXE): $(srcdir)/testresample.c
93         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
94
95 testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
96         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
97
98 testautomation$(EXE): $(srcdir)/testautomation.c \
99                       $(srcdir)/testautomation_audio.c \
100                       $(srcdir)/testautomation_clipboard.c \
101                       $(srcdir)/testautomation_events.c \
102                       $(srcdir)/testautomation_keyboard.c \
103                       $(srcdir)/testautomation_main.c \
104                       $(srcdir)/testautomation_mouse.c \
105                       $(srcdir)/testautomation_pixels.c \
106                       $(srcdir)/testautomation_platform.c \
107                       $(srcdir)/testautomation_rect.c \
108                       $(srcdir)/testautomation_render.c \
109                       $(srcdir)/testautomation_rwops.c \
110                       $(srcdir)/testautomation_sdltest.c \
111                       $(srcdir)/testautomation_stdlib.c \
112                       $(srcdir)/testautomation_surface.c \
113                       $(srcdir)/testautomation_syswm.c \
114                       $(srcdir)/testautomation_timer.c \
115                       $(srcdir)/testautomation_video.c \
116                       $(srcdir)/testautomation_hints.c
117         $(CC) -o $@ $^ $(CFLAGS) $(LIBS) 
118
119 testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
120         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
121
122 testaudiohotplug$(EXE): $(srcdir)/testaudiohotplug.c
123         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
124
125 testaudiocapture$(EXE): $(srcdir)/testaudiocapture.c
126         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
127
128 testatomic$(EXE): $(srcdir)/testatomic.c
129         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
130
131 testintersections$(EXE): $(srcdir)/testintersections.c
132         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
133
134 testrelative$(EXE): $(srcdir)/testrelative.c
135         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
136
137 testhittesting$(EXE): $(srcdir)/testhittesting.c
138         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
139
140 testdraw2$(EXE): $(srcdir)/testdraw2.c
141         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
142
143 testdrawchessboard$(EXE): $(srcdir)/testdrawchessboard.c
144         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
145
146 testdropfile$(EXE): $(srcdir)/testdropfile.c
147         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
148
149 testerror$(EXE): $(srcdir)/testerror.c
150         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
151
152 testevdev$(EXE): $(srcdir)/testevdev.c
153         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
154
155 testfile$(EXE): $(srcdir)/testfile.c
156         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
157
158 testgamecontroller$(EXE): $(srcdir)/testgamecontroller.c
159         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
160  
161 testgesture$(EXE): $(srcdir)/testgesture.c
162         $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
163  
164 testgl2$(EXE): $(srcdir)/testgl2.c
165         $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
166
167 testgles$(EXE): $(srcdir)/testgles.c
168         $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLESLIB@ @MATHLIB@
169
170 testgles2$(EXE): $(srcdir)/testgles2.c
171         $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
172
173 testhaptic$(EXE): $(srcdir)/testhaptic.c
174         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
175 testhotplug$(EXE): $(srcdir)/testhotplug.c
176         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
177 testrumble$(EXE): $(srcdir)/testrumble.c
178         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
179
180 testthread$(EXE): $(srcdir)/testthread.c
181         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
182
183 testiconv$(EXE): $(srcdir)/testiconv.c
184         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
185
186 testime$(EXE): $(srcdir)/testime.c
187         $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
188
189 testjoystick$(EXE): $(srcdir)/testjoystick.c
190         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
191
192 testkeys$(EXE): $(srcdir)/testkeys.c
193         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
194
195 testloadso$(EXE): $(srcdir)/testloadso.c
196         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
197
198 testlock$(EXE): $(srcdir)/testlock.c
199         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
200
201 ifeq (@ISMACOSX@,true)
202 testnative$(EXE): $(srcdir)/testnative.c \
203                         $(srcdir)/testnativecocoa.m \
204                         $(srcdir)/testnativex11.c
205         $(CC) -o $@ $^ $(CFLAGS) $(LIBS) -framework Cocoa @XLIB@
206 endif
207
208 ifeq (@ISWINDOWS@,true)
209 testnative$(EXE): $(srcdir)/testnative.c \
210                         $(srcdir)/testnativew32.c
211         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
212 endif
213
214 ifeq (@ISUNIX@,true)
215 testnative$(EXE): $(srcdir)/testnative.c \
216                         $(srcdir)/testnativex11.c
217         $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @XLIB@
218 endif
219
220 #there's probably a better way of doing this
221 ifeq (@ISMACOSX@,false)
222 ifeq (@ISWINDOWS@,false)
223 ifeq (@ISUNIX@,false)
224 testnative$(EXE): ;
225 endif
226 endif
227 endif
228
229 testoverlay2$(EXE): $(srcdir)/testoverlay2.c $(srcdir)/testyuv_cvt.c
230         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
231
232 testplatform$(EXE): $(srcdir)/testplatform.c
233         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
234
235 testpower$(EXE): $(srcdir)/testpower.c
236         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
237
238 testfilesystem$(EXE): $(srcdir)/testfilesystem.c
239         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
240
241 testrendertarget$(EXE): $(srcdir)/testrendertarget.c
242         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
243
244 testscale$(EXE): $(srcdir)/testscale.c
245         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
246
247 testsem$(EXE): $(srcdir)/testsem.c
248         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
249
250 testsensor$(EXE): $(srcdir)/testsensor.c
251         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
252
253 testshader$(EXE): $(srcdir)/testshader.c
254         $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
255
256 testshape$(EXE): $(srcdir)/testshape.c
257         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
258
259 testsprite2$(EXE): $(srcdir)/testsprite2.c
260         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
261
262 testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
263         $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
264
265 teststreaming$(EXE): $(srcdir)/teststreaming.c
266         $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
267
268 testtimer$(EXE): $(srcdir)/testtimer.c
269         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
270
271 testurl$(EXE): $(srcdir)/testurl.c
272         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
273
274 testver$(EXE): $(srcdir)/testver.c
275         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
276
277 testviewport$(EXE): $(srcdir)/testviewport.c
278         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
279
280 testwm2$(EXE): $(srcdir)/testwm2.c
281         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
282
283 testyuv$(EXE): $(srcdir)/testyuv.c $(srcdir)/testyuv_cvt.c
284         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
285
286 torturethread$(EXE): $(srcdir)/torturethread.c
287         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
288
289 testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c
290         $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
291
292 testmessage$(EXE): $(srcdir)/testmessage.c
293         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
294
295 testdisplayinfo$(EXE): $(srcdir)/testdisplayinfo.c
296         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
297
298 testqsort$(EXE): $(srcdir)/testqsort.c
299         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
300
301 testbounds$(EXE): $(srcdir)/testbounds.c
302         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
303
304 testcustomcursor$(EXE): $(srcdir)/testcustomcursor.c
305         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
306
307 controllermap$(EXE): $(srcdir)/controllermap.c
308         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
309
310 testvulkan$(EXE): $(srcdir)/testvulkan.c
311         $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
312
313 testlocale$(EXE): $(srcdir)/testlocale.c
314         $(CC) -o $@ $? $(CFLAGS) $(LIBS)
315
316
317
318 clean:
319         rm -f $(TARGETS)
320
321 distclean: clean
322         rm -f Makefile
323         rm -f config.status config.cache config.log
324         rm -rf $(srcdir)/autom4te*
325
326 ifneq ($(srcdir), .)
327 %.bmp: $(srcdir)/%.bmp
328         cp $< $@
329
330 %.wav: $(srcdir)/%.wav
331         cp $< $@
332
333 %.dat: $(srcdir)/%.dat
334         cp $< $@
335 endif
336
337 copydatafiles: copybmpfiles copywavfiles copydatfiles
338 .PHONY : copydatafiles
339
340 copybmpfiles: $(foreach bmp,$(wildcard $(srcdir)/*.bmp),$(notdir $(bmp)))
341 .PHONY : copybmpfiles
342
343 copywavfiles: $(foreach wav,$(wildcard $(srcdir)/*.wav),$(notdir $(wav)))
344 .PHONY : copywavfiles
345
346 copydatfiles: $(foreach dat,$(wildcard $(srcdir)/*.dat),$(notdir $(dat)))
347 .PHONY : copydatfiles
348