Makefile.in 7.1 KB

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