Makefile.in 8.2 KB

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