Makefile.in 6.4 KB

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