Makefile.in 5.8 KB

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