🛠️🐜 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.

376 lines
9.1 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. 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. ifeq (@ISOS2@,true)
  189. testnative$(EXE): $(srcdir)/testnative.c \
  190. $(srcdir)/testnativeos2.c
  191. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  192. endif
  193. #there's probably a better way of doing this
  194. ifeq (@ISMACOSX@,false)
  195. ifeq (@ISWINDOWS@,false)
  196. ifeq (@ISUNIX@,false)
  197. ifeq (@ISOS2@,false)
  198. testnative$(EXE): ;
  199. endif
  200. endif
  201. endif
  202. endif
  203. testoverlay2$(EXE): $(srcdir)/testoverlay2.c $(srcdir)/testyuv_cvt.c
  204. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  205. testplatform$(EXE): $(srcdir)/testplatform.c
  206. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  207. testpower$(EXE): $(srcdir)/testpower.c
  208. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  209. testfilesystem$(EXE): $(srcdir)/testfilesystem.c
  210. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  211. testrendertarget$(EXE): $(srcdir)/testrendertarget.c
  212. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  213. testscale$(EXE): $(srcdir)/testscale.c
  214. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  215. testsem$(EXE): $(srcdir)/testsem.c
  216. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  217. testsensor$(EXE): $(srcdir)/testsensor.c
  218. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  219. testshader$(EXE): $(srcdir)/testshader.c
  220. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
  221. testshape$(EXE): $(srcdir)/testshape.c
  222. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  223. testsprite2$(EXE): $(srcdir)/testsprite2.c
  224. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  225. testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
  226. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
  227. teststreaming$(EXE): $(srcdir)/teststreaming.c
  228. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
  229. testtimer$(EXE): $(srcdir)/testtimer.c
  230. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  231. testurl$(EXE): $(srcdir)/testurl.c
  232. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  233. testver$(EXE): $(srcdir)/testver.c
  234. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  235. testviewport$(EXE): $(srcdir)/testviewport.c
  236. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  237. testwm2$(EXE): $(srcdir)/testwm2.c
  238. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  239. testyuv$(EXE): $(srcdir)/testyuv.c $(srcdir)/testyuv_cvt.c
  240. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  241. torturethread$(EXE): $(srcdir)/torturethread.c
  242. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  243. testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c
  244. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
  245. testmessage$(EXE): $(srcdir)/testmessage.c
  246. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  247. testdisplayinfo$(EXE): $(srcdir)/testdisplayinfo.c
  248. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  249. testqsort$(EXE): $(srcdir)/testqsort.c
  250. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  251. testbounds$(EXE): $(srcdir)/testbounds.c
  252. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  253. testcustomcursor$(EXE): $(srcdir)/testcustomcursor.c
  254. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  255. controllermap$(EXE): $(srcdir)/controllermap.c
  256. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  257. testvulkan$(EXE): $(srcdir)/testvulkan.c
  258. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  259. testlocale$(EXE): $(srcdir)/testlocale.c
  260. $(CC) -o $@ $? $(CFLAGS) $(LIBS)
  261. testmouse$(EXE): $(srcdir)/testmouse.c
  262. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  263. clean:
  264. rm -f $(TARGETS)
  265. distclean: clean
  266. rm -f Makefile
  267. rm -f config.status config.cache config.log
  268. rm -rf $(srcdir)/autom4te*
  269. DATA = \
  270. axis.bmp \
  271. button.bmp \
  272. controllermap.bmp \
  273. controllermap_back.bmp \
  274. icon.bmp \
  275. moose.dat \
  276. sample.bmp \
  277. sample.wav \
  278. testgles2_sdf_img_normal.bmp \
  279. testgles2_sdf_img_sdf.bmp \
  280. testyuv.bmp \
  281. unifont-13.0.06.hex \
  282. utf8.txt \
  283. $(NULL)
  284. ifneq ($(srcdir), .)
  285. $(DATA) : %: $(srcdir)/% Makefile
  286. cp $< $@
  287. endif
  288. copydatafiles: $(DATA)
  289. .PHONY : copydatafiles