Makefile.in 6.6 KB

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