Makefile.in 6.7 KB

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