Makefile.in 7.3 KB

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