Makefile.in 6.9 KB

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