Makefile.in 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. # Makefile to build the SDL tests
  2. srcdir = @srcdir@
  3. CC = @CC@
  4. EXE = @EXE@
  5. CFLAGS = @CFLAGS@ -g
  6. LIBS = @LIBS@
  7. TARGETS = \
  8. checkkeys$(EXE) \
  9. checkkeysthreads$(EXE) \
  10. controllermap$(EXE) \
  11. loopwave$(EXE) \
  12. loopwavequeue$(EXE) \
  13. testatomic$(EXE) \
  14. testaudiocapture$(EXE) \
  15. testaudiohotplug$(EXE) \
  16. testaudioinfo$(EXE) \
  17. testautomation$(EXE) \
  18. testbounds$(EXE) \
  19. testcustomcursor$(EXE) \
  20. testdisplayinfo$(EXE) \
  21. testdraw2$(EXE) \
  22. testdrawchessboard$(EXE) \
  23. testdropfile$(EXE) \
  24. testerror$(EXE) \
  25. testevdev$(EXE) \
  26. testfile$(EXE) \
  27. testfilesystem$(EXE) \
  28. testgamecontroller$(EXE) \
  29. testgeometry$(EXE) \
  30. testgesture$(EXE) \
  31. testhaptic$(EXE) \
  32. testhittesting$(EXE) \
  33. testhotplug$(EXE) \
  34. testiconv$(EXE) \
  35. testime$(EXE) \
  36. testintersections$(EXE) \
  37. testjoystick$(EXE) \
  38. testkeys$(EXE) \
  39. testloadso$(EXE) \
  40. testlocale$(EXE) \
  41. testlock$(EXE) \
  42. testmessage$(EXE) \
  43. testmouse$(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. testsurround$(EXE) \
  63. testthread$(EXE) \
  64. testtimer$(EXE) \
  65. testurl$(EXE) \
  66. testver$(EXE) \
  67. testviewport$(EXE) \
  68. testvulkan$(EXE) \
  69. testwm2$(EXE) \
  70. testyuv$(EXE) \
  71. torturethread$(EXE) \
  72. @OPENGL_TARGETS@ += testgl2$(EXE) testshader$(EXE)
  73. @OPENGLES1_TARGETS@ += testgles$(EXE)
  74. @OPENGLES2_TARGETS@ += testgles2$(EXE)
  75. all: Makefile $(TARGETS) copydatafiles
  76. Makefile: $(srcdir)/Makefile.in
  77. $(SHELL) config.status $@
  78. checkkeys$(EXE): $(srcdir)/checkkeys.c
  79. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  80. checkkeysthreads$(EXE): $(srcdir)/checkkeysthreads.c
  81. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  82. loopwave$(EXE): $(srcdir)/loopwave.c
  83. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  84. loopwavequeue$(EXE): $(srcdir)/loopwavequeue.c
  85. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  86. testsurround$(EXE): $(srcdir)/testsurround.c
  87. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  88. testresample$(EXE): $(srcdir)/testresample.c
  89. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  90. testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
  91. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  92. testautomation$(EXE): $(srcdir)/testautomation.c \
  93. $(srcdir)/testautomation_audio.c \
  94. $(srcdir)/testautomation_clipboard.c \
  95. $(srcdir)/testautomation_events.c \
  96. $(srcdir)/testautomation_keyboard.c \
  97. $(srcdir)/testautomation_main.c \
  98. $(srcdir)/testautomation_mouse.c \
  99. $(srcdir)/testautomation_pixels.c \
  100. $(srcdir)/testautomation_platform.c \
  101. $(srcdir)/testautomation_rect.c \
  102. $(srcdir)/testautomation_render.c \
  103. $(srcdir)/testautomation_rwops.c \
  104. $(srcdir)/testautomation_sdltest.c \
  105. $(srcdir)/testautomation_stdlib.c \
  106. $(srcdir)/testautomation_surface.c \
  107. $(srcdir)/testautomation_syswm.c \
  108. $(srcdir)/testautomation_timer.c \
  109. $(srcdir)/testautomation_video.c \
  110. $(srcdir)/testautomation_hints.c
  111. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  112. testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
  113. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  114. testaudiohotplug$(EXE): $(srcdir)/testaudiohotplug.c
  115. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  116. testaudiocapture$(EXE): $(srcdir)/testaudiocapture.c
  117. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  118. testatomic$(EXE): $(srcdir)/testatomic.c
  119. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  120. testintersections$(EXE): $(srcdir)/testintersections.c
  121. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  122. testrelative$(EXE): $(srcdir)/testrelative.c
  123. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  124. testhittesting$(EXE): $(srcdir)/testhittesting.c
  125. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  126. testdraw2$(EXE): $(srcdir)/testdraw2.c
  127. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  128. testdrawchessboard$(EXE): $(srcdir)/testdrawchessboard.c
  129. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  130. testdropfile$(EXE): $(srcdir)/testdropfile.c
  131. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  132. testerror$(EXE): $(srcdir)/testerror.c
  133. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  134. testevdev$(EXE): $(srcdir)/testevdev.c
  135. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  136. testfile$(EXE): $(srcdir)/testfile.c
  137. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  138. testgamecontroller$(EXE): $(srcdir)/testgamecontroller.c
  139. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  140. testgeometry$(EXE): $(srcdir)/testgeometry.c
  141. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  142. testgesture$(EXE): $(srcdir)/testgesture.c
  143. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
  144. testgl2$(EXE): $(srcdir)/testgl2.c
  145. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
  146. testgles$(EXE): $(srcdir)/testgles.c
  147. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLESLIB@ @MATHLIB@
  148. testgles2$(EXE): $(srcdir)/testgles2.c
  149. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
  150. testgles2_sdf$(EXE): $(srcdir)/testgles2_sdf.c
  151. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
  152. testhaptic$(EXE): $(srcdir)/testhaptic.c
  153. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  154. testhotplug$(EXE): $(srcdir)/testhotplug.c
  155. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  156. testrumble$(EXE): $(srcdir)/testrumble.c
  157. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  158. testthread$(EXE): $(srcdir)/testthread.c
  159. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  160. testiconv$(EXE): $(srcdir)/testiconv.c
  161. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  162. testime$(EXE): $(srcdir)/testime.c
  163. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
  164. testjoystick$(EXE): $(srcdir)/testjoystick.c
  165. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  166. testkeys$(EXE): $(srcdir)/testkeys.c
  167. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  168. testloadso$(EXE): $(srcdir)/testloadso.c
  169. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  170. testlock$(EXE): $(srcdir)/testlock.c
  171. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  172. ifeq (@ISMACOSX@,true)
  173. testnative$(EXE): $(srcdir)/testnative.c \
  174. $(srcdir)/testnativecocoa.m \
  175. $(srcdir)/testnativex11.c
  176. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) -framework Cocoa @XLIB@
  177. endif
  178. ifeq (@ISWINDOWS@,true)
  179. testnative$(EXE): $(srcdir)/testnative.c \
  180. $(srcdir)/testnativew32.c
  181. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  182. endif
  183. ifeq (@ISUNIX@,true)
  184. testnative$(EXE): $(srcdir)/testnative.c \
  185. $(srcdir)/testnativex11.c
  186. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @XLIB@
  187. endif
  188. #there's probably a better way of doing this
  189. ifeq (@ISMACOSX@,false)
  190. ifeq (@ISWINDOWS@,false)
  191. ifeq (@ISUNIX@,false)
  192. testnative$(EXE): ;
  193. endif
  194. endif
  195. endif
  196. testoverlay2$(EXE): $(srcdir)/testoverlay2.c $(srcdir)/testyuv_cvt.c
  197. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  198. testplatform$(EXE): $(srcdir)/testplatform.c
  199. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  200. testpower$(EXE): $(srcdir)/testpower.c
  201. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  202. testfilesystem$(EXE): $(srcdir)/testfilesystem.c
  203. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  204. testrendertarget$(EXE): $(srcdir)/testrendertarget.c
  205. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  206. testscale$(EXE): $(srcdir)/testscale.c
  207. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  208. testsem$(EXE): $(srcdir)/testsem.c
  209. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  210. testsensor$(EXE): $(srcdir)/testsensor.c
  211. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  212. testshader$(EXE): $(srcdir)/testshader.c
  213. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
  214. testshape$(EXE): $(srcdir)/testshape.c
  215. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  216. testsprite2$(EXE): $(srcdir)/testsprite2.c
  217. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  218. testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
  219. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
  220. teststreaming$(EXE): $(srcdir)/teststreaming.c
  221. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
  222. testtimer$(EXE): $(srcdir)/testtimer.c
  223. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  224. testurl$(EXE): $(srcdir)/testurl.c
  225. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  226. testver$(EXE): $(srcdir)/testver.c
  227. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  228. testviewport$(EXE): $(srcdir)/testviewport.c
  229. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  230. testwm2$(EXE): $(srcdir)/testwm2.c
  231. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  232. testyuv$(EXE): $(srcdir)/testyuv.c $(srcdir)/testyuv_cvt.c
  233. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  234. torturethread$(EXE): $(srcdir)/torturethread.c
  235. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  236. testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c
  237. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
  238. testmessage$(EXE): $(srcdir)/testmessage.c
  239. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  240. testdisplayinfo$(EXE): $(srcdir)/testdisplayinfo.c
  241. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  242. testqsort$(EXE): $(srcdir)/testqsort.c
  243. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  244. testbounds$(EXE): $(srcdir)/testbounds.c
  245. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  246. testcustomcursor$(EXE): $(srcdir)/testcustomcursor.c
  247. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  248. controllermap$(EXE): $(srcdir)/controllermap.c
  249. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  250. testvulkan$(EXE): $(srcdir)/testvulkan.c
  251. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  252. testlocale$(EXE): $(srcdir)/testlocale.c
  253. $(CC) -o $@ $? $(CFLAGS) $(LIBS)
  254. testmouse$(EXE): $(srcdir)/testmouse.c
  255. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  256. clean:
  257. rm -f $(TARGETS)
  258. distclean: clean
  259. rm -f Makefile
  260. rm -f config.status config.cache config.log
  261. rm -rf $(srcdir)/autom4te*
  262. DATA = \
  263. axis.bmp \
  264. button.bmp \
  265. controllermap.bmp \
  266. controllermap_back.bmp \
  267. icon.bmp \
  268. moose.dat \
  269. sample.bmp \
  270. sample.wav \
  271. testgles2_sdf_img_normal.bmp \
  272. testgles2_sdf_img_sdf.bmp \
  273. testyuv.bmp \
  274. unifont-13.0.06.hex \
  275. $(NULL)
  276. ifneq ($(srcdir), .)
  277. $(DATA) : %: $(srcdir)/% Makefile
  278. cp $< $@
  279. endif
  280. copydatafiles: $(DATA)
  281. .PHONY : copydatafiles