Makefile.in 6.2 KB

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