Makefile.in 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  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. checkkeysthreads$(EXE) \
  10. controllermap$(EXE) \
  11. loopwave$(EXE) \
  12. loopwavequeue$(EXE) \
  13. testatomic$(EXE) \
  14. testaudiocapture$(EXE) \
  15. testaudiohotplug$(EXE) \
  16. testaudioinfo$(EXE) \
  17. testautomation$(EXE) \
  18. testbounds$(EXE) \
  19. testcustomcursor$(EXE) \
  20. testdisplayinfo$(EXE) \
  21. testdraw2$(EXE) \
  22. testdrawchessboard$(EXE) \
  23. testdropfile$(EXE) \
  24. testerror$(EXE) \
  25. testevdev$(EXE) \
  26. testfile$(EXE) \
  27. testfilesystem$(EXE) \
  28. testgamecontroller$(EXE) \
  29. testgeometry$(EXE) \
  30. testgesture$(EXE) \
  31. testhaptic$(EXE) \
  32. testhittesting$(EXE) \
  33. testhotplug$(EXE) \
  34. testiconv$(EXE) \
  35. testime$(EXE) \
  36. testintersections$(EXE) \
  37. testjoystick$(EXE) \
  38. testkeys$(EXE) \
  39. testloadso$(EXE) \
  40. testlocale$(EXE) \
  41. testlock$(EXE) \
  42. testmessage$(EXE) \
  43. testmouse$(EXE) \
  44. testmultiaudio$(EXE) \
  45. testnative$(EXE) \
  46. testoverlay2$(EXE) \
  47. testplatform$(EXE) \
  48. testpower$(EXE) \
  49. testqsort$(EXE) \
  50. testrelative$(EXE) \
  51. testrendercopyex$(EXE) \
  52. testrendertarget$(EXE) \
  53. testresample$(EXE) \
  54. testrumble$(EXE) \
  55. testscale$(EXE) \
  56. testsem$(EXE) \
  57. testsensor$(EXE) \
  58. testshape$(EXE) \
  59. testsprite2$(EXE) \
  60. testspriteminimal$(EXE) \
  61. teststreaming$(EXE) \
  62. testthread$(EXE) \
  63. testtimer$(EXE) \
  64. testurl$(EXE) \
  65. testver$(EXE) \
  66. testviewport$(EXE) \
  67. testvulkan$(EXE) \
  68. testwm2$(EXE) \
  69. testyuv$(EXE) \
  70. torturethread$(EXE) \
  71. @OPENGL_TARGETS@ += testgl2$(EXE) testshader$(EXE)
  72. @OPENGLES1_TARGETS@ += testgles$(EXE)
  73. @OPENGLES2_TARGETS@ += testgles2$(EXE)
  74. all: Makefile $(TARGETS) copydatafiles
  75. Makefile: $(srcdir)/Makefile.in
  76. $(SHELL) config.status $@
  77. checkkeys$(EXE): $(srcdir)/checkkeys.c
  78. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  79. checkkeysthreads$(EXE): $(srcdir)/checkkeysthreads.c
  80. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  81. loopwave$(EXE): $(srcdir)/loopwave.c
  82. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  83. loopwavequeue$(EXE): $(srcdir)/loopwavequeue.c
  84. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  85. testresample$(EXE): $(srcdir)/testresample.c
  86. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  87. testaudioinfo$(EXE): $(srcdir)/testaudioinfo.c
  88. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  89. testautomation$(EXE): $(srcdir)/testautomation.c \
  90. $(srcdir)/testautomation_audio.c \
  91. $(srcdir)/testautomation_clipboard.c \
  92. $(srcdir)/testautomation_events.c \
  93. $(srcdir)/testautomation_keyboard.c \
  94. $(srcdir)/testautomation_main.c \
  95. $(srcdir)/testautomation_mouse.c \
  96. $(srcdir)/testautomation_pixels.c \
  97. $(srcdir)/testautomation_platform.c \
  98. $(srcdir)/testautomation_rect.c \
  99. $(srcdir)/testautomation_render.c \
  100. $(srcdir)/testautomation_rwops.c \
  101. $(srcdir)/testautomation_sdltest.c \
  102. $(srcdir)/testautomation_stdlib.c \
  103. $(srcdir)/testautomation_surface.c \
  104. $(srcdir)/testautomation_syswm.c \
  105. $(srcdir)/testautomation_timer.c \
  106. $(srcdir)/testautomation_video.c \
  107. $(srcdir)/testautomation_hints.c
  108. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  109. testmultiaudio$(EXE): $(srcdir)/testmultiaudio.c
  110. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  111. testaudiohotplug$(EXE): $(srcdir)/testaudiohotplug.c
  112. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  113. testaudiocapture$(EXE): $(srcdir)/testaudiocapture.c
  114. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  115. testatomic$(EXE): $(srcdir)/testatomic.c
  116. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  117. testintersections$(EXE): $(srcdir)/testintersections.c
  118. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  119. testrelative$(EXE): $(srcdir)/testrelative.c
  120. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  121. testhittesting$(EXE): $(srcdir)/testhittesting.c
  122. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  123. testdraw2$(EXE): $(srcdir)/testdraw2.c
  124. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  125. testdrawchessboard$(EXE): $(srcdir)/testdrawchessboard.c
  126. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  127. testdropfile$(EXE): $(srcdir)/testdropfile.c
  128. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  129. testerror$(EXE): $(srcdir)/testerror.c
  130. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  131. testevdev$(EXE): $(srcdir)/testevdev.c
  132. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  133. testfile$(EXE): $(srcdir)/testfile.c
  134. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  135. testgamecontroller$(EXE): $(srcdir)/testgamecontroller.c
  136. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  137. testgeometry$(EXE): $(srcdir)/testgeometry.c
  138. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  139. testgesture$(EXE): $(srcdir)/testgesture.c
  140. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
  141. testgl2$(EXE): $(srcdir)/testgl2.c
  142. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
  143. testgles$(EXE): $(srcdir)/testgles.c
  144. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLESLIB@ @MATHLIB@
  145. testgles2$(EXE): $(srcdir)/testgles2.c
  146. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
  147. testgles2_sdf$(EXE): $(srcdir)/testgles2_sdf.c
  148. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
  149. testhaptic$(EXE): $(srcdir)/testhaptic.c
  150. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  151. testhotplug$(EXE): $(srcdir)/testhotplug.c
  152. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  153. testrumble$(EXE): $(srcdir)/testrumble.c
  154. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  155. testthread$(EXE): $(srcdir)/testthread.c
  156. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  157. testiconv$(EXE): $(srcdir)/testiconv.c
  158. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  159. testime$(EXE): $(srcdir)/testime.c
  160. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @SDL_TTF_LIB@
  161. testjoystick$(EXE): $(srcdir)/testjoystick.c
  162. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  163. testkeys$(EXE): $(srcdir)/testkeys.c
  164. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  165. testloadso$(EXE): $(srcdir)/testloadso.c
  166. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  167. testlock$(EXE): $(srcdir)/testlock.c
  168. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  169. ifeq (@ISMACOSX@,true)
  170. testnative$(EXE): $(srcdir)/testnative.c \
  171. $(srcdir)/testnativecocoa.m \
  172. $(srcdir)/testnativex11.c
  173. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) -framework Cocoa @XLIB@
  174. endif
  175. ifeq (@ISWINDOWS@,true)
  176. testnative$(EXE): $(srcdir)/testnative.c \
  177. $(srcdir)/testnativew32.c
  178. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  179. endif
  180. ifeq (@ISUNIX@,true)
  181. testnative$(EXE): $(srcdir)/testnative.c \
  182. $(srcdir)/testnativex11.c
  183. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @XLIB@
  184. endif
  185. #there's probably a better way of doing this
  186. ifeq (@ISMACOSX@,false)
  187. ifeq (@ISWINDOWS@,false)
  188. ifeq (@ISUNIX@,false)
  189. testnative$(EXE): ;
  190. endif
  191. endif
  192. endif
  193. testoverlay2$(EXE): $(srcdir)/testoverlay2.c $(srcdir)/testyuv_cvt.c
  194. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  195. testplatform$(EXE): $(srcdir)/testplatform.c
  196. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  197. testpower$(EXE): $(srcdir)/testpower.c
  198. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  199. testfilesystem$(EXE): $(srcdir)/testfilesystem.c
  200. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  201. testrendertarget$(EXE): $(srcdir)/testrendertarget.c
  202. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  203. testscale$(EXE): $(srcdir)/testscale.c
  204. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  205. testsem$(EXE): $(srcdir)/testsem.c
  206. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  207. testsensor$(EXE): $(srcdir)/testsensor.c
  208. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  209. testshader$(EXE): $(srcdir)/testshader.c
  210. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
  211. testshape$(EXE): $(srcdir)/testshape.c
  212. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  213. testsprite2$(EXE): $(srcdir)/testsprite2.c
  214. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  215. testspriteminimal$(EXE): $(srcdir)/testspriteminimal.c
  216. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
  217. teststreaming$(EXE): $(srcdir)/teststreaming.c
  218. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
  219. testtimer$(EXE): $(srcdir)/testtimer.c
  220. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  221. testurl$(EXE): $(srcdir)/testurl.c
  222. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  223. testver$(EXE): $(srcdir)/testver.c
  224. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  225. testviewport$(EXE): $(srcdir)/testviewport.c
  226. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  227. testwm2$(EXE): $(srcdir)/testwm2.c
  228. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  229. testyuv$(EXE): $(srcdir)/testyuv.c $(srcdir)/testyuv_cvt.c
  230. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  231. torturethread$(EXE): $(srcdir)/torturethread.c
  232. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  233. testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c
  234. $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@
  235. testmessage$(EXE): $(srcdir)/testmessage.c
  236. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  237. testdisplayinfo$(EXE): $(srcdir)/testdisplayinfo.c
  238. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  239. testqsort$(EXE): $(srcdir)/testqsort.c
  240. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  241. testbounds$(EXE): $(srcdir)/testbounds.c
  242. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  243. testcustomcursor$(EXE): $(srcdir)/testcustomcursor.c
  244. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  245. controllermap$(EXE): $(srcdir)/controllermap.c
  246. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  247. testvulkan$(EXE): $(srcdir)/testvulkan.c
  248. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  249. testlocale$(EXE): $(srcdir)/testlocale.c
  250. $(CC) -o $@ $? $(CFLAGS) $(LIBS)
  251. testmouse$(EXE): $(srcdir)/testmouse.c
  252. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  253. clean:
  254. rm -f $(TARGETS)
  255. distclean: clean
  256. rm -f Makefile
  257. rm -f config.status config.cache config.log
  258. rm -rf $(srcdir)/autom4te*
  259. DATA = \
  260. axis.bmp \
  261. button.bmp \
  262. controllermap.bmp \
  263. controllermap_back.bmp \
  264. icon.bmp \
  265. moose.dat \
  266. sample.bmp \
  267. sample.wav \
  268. testgles2_sdf_img_normal.bmp \
  269. testgles2_sdf_img_sdf.bmp \
  270. testyuv.bmp \
  271. $(NULL)
  272. ifneq ($(srcdir), .)
  273. $(DATA) : %: $(srcdir)/% Makefile
  274. cp $< $@
  275. endif
  276. copydatafiles: $(DATA)
  277. .PHONY : copydatafiles