watcom.mif 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. INCPATH+= -I"../include"
  2. LIBPATH = ..
  3. LIBS = SDL2.lib SDL2test.lib testutils.lib
  4. #CFLAGS+= -DHAVE_SDL_TTF
  5. #TTFLIBS = SDL2ttf.lib
  6. CFLAGS+= $(INCPATH)
  7. TARGETS = testatomic.exe testdisplayinfo.exe testbounds.exe testdraw2.exe &
  8. testdrawchessboard.exe testdropfile.exe testerror.exe testfile.exe &
  9. testfilesystem.exe testgamecontroller.exe testgeometry.exe testgesture.exe &
  10. testhittesting.exe testhotplug.exe testiconv.exe testime.exe testlocale.exe &
  11. testguid.exe testintersections.exe testjoystick.exe testkeys.exe testloadso.exe &
  12. testlock.exe testmessage.exe testoverlay2.exe testplatform.exe &
  13. testpower.exe testsensor.exe testrelative.exe testrendercopyex.exe &
  14. testrendertarget.exe testrumble.exe testscale.exe testsem.exe &
  15. testshader.exe testshape.exe testsprite2.exe testspriteminimal.exe &
  16. teststreaming.exe testthread.exe testtimer.exe testver.exe &
  17. testviewport.exe testwm2.exe torturethread.exe checkkeys.exe &
  18. checkkeysthreads.exe testmouse.exe testgles.exe testgles2.exe &
  19. controllermap.exe testhaptic.exe testqsort.exe testresample.exe &
  20. testaudioinfo.exe testaudiocapture.exe loopwave.exe loopwavequeue.exe &
  21. testsurround.exe testyuv.exe testgl2.exe testvulkan.exe testnative.exe &
  22. testautomation.exe testaudiohotplug.exe testcustomcursor.exe testmultiaudio.exe &
  23. testoffscreen.exe testurl.exe
  24. noninteractive = &
  25. testatomic.exe &
  26. testerror.exe &
  27. testfilesystem.exe &
  28. testkeys.exe &
  29. testlocale.exe &
  30. testplatform.exe &
  31. testpower.exe &
  32. testqsort.exe &
  33. testthread.exe &
  34. testtimer.exe &
  35. testver.exe
  36. needs_audio = &
  37. testaudioinfo.exe &
  38. testsurround.exe
  39. needs_display = &
  40. testbounds.exe &
  41. testdisplayinfo.exe
  42. TESTS = $(noninteractive) $(needs_audio) $(needs_display)
  43. # testautomation sources
  44. TASRCS = testautomation.c testautomation_audio.c testautomation_clipboard.c &
  45. testautomation_events.c testautomation_hints.c &
  46. testautomation_keyboard.c testautomation_main.c &
  47. testautomation_mouse.c testautomation_pixels.c &
  48. testautomation_platform.c testautomation_rect.c &
  49. testautomation_render.c testautomation_rwops.c &
  50. testautomation_sdltest.c testautomation_stdlib.c &
  51. testautomation_surface.c testautomation_syswm.c &
  52. testautomation_timer.c testautomation_video.c &
  53. testautomation_math.c
  54. OBJS = $(TARGETS:.exe=.obj)
  55. COBJS = $(CSRCS:.c=.obj)
  56. TAOBJS = $(TASRCS:.c=.obj)
  57. TNOBJS = $(TNSRCS:.c=.obj)
  58. all: testutils.lib $(TARGETS)
  59. .c: ../src/test
  60. .obj.exe:
  61. wlink SYS $(SYSTEM) libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  62. .c.obj:
  63. wcc386 $(CFLAGS) -fo=$^@ $<
  64. # specials
  65. testautomation.exe: $(TAOBJS)
  66. wlink SYS $(SYSTEM) libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  67. testnative.exe: $(TNOBJS)
  68. wlink SYS $(SYSTEM) libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  69. testoverlay2.exe: testoverlay2.obj testyuv_cvt.obj
  70. wlink SYS $(SYSTEM) libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  71. testyuv.exe: testyuv.obj testyuv_cvt.obj
  72. wlink SYS $(SYSTEM) libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  73. testshader.exe: testshader.obj
  74. wlink SYS $(SYSTEM) libpath $(LIBPATH) lib {$(LIBS) $(GLLIBS)} op q op el file {$<} name $@
  75. testime.exe: testime.obj
  76. wlink SYS $(SYSTEM) libpath $(LIBPATH) lib {$(LIBS) $(TTFLIBS)} op q op el file {$<} name $@
  77. testutils.lib: testutils.obj
  78. wlib -q -b -n -c -pa -s -t -zld -ii -io $@ $<
  79. check: .SYMBOLIC $(TESTS)
  80. @set SDL_AUDIODRIVER=dummy
  81. @set SDL_VIDEODRIVER=dummy
  82. @copy "../SDL2.dll" .
  83. @for %exe in ($(TESTS)) do %exe
  84. check-quick: .SYMBOLIC $(TESTS)
  85. @set SDL_TESTS_QUICK=1
  86. @set SDL_AUDIODRIVER=dummy
  87. @set SDL_VIDEODRIVER=dummy
  88. @copy "../SDL2.dll" .
  89. @for %exe in ($(TESTS)) do %exe
  90. clean: .SYMBOLIC
  91. rm -f *.obj *.err
  92. distclean: .SYMBOLIC clean
  93. rm -f *.exe *.lib