🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

336 lines
8.3 KiB

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