Makefile.in 8.5 KB

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