Makefile.in 8.8 KB

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