Makefile.in 7.9 KB

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