Makefile.in 5.9 KB

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