Makefile.in 6.0 KB

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