🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
3.3 KiB

  1. BINPATH = .
  2. TARGETS = testatomic.exe testdisplayinfo.exe testbounds.exe testdraw2.exe &
  3. testdrawchessboard.exe testdropfile.exe testerror.exe testfile.exe &
  4. testfilesystem.exe testgamecontroller.exe testgesture.exe &
  5. testhittesting.exe testhotplug.exe testiconv.exe testime.exe &
  6. testintersections.exe testjoystick.exe testkeys.exe testloadso.exe &
  7. testlock.exe testmessage.exe testoverlay2.exe testplatform.exe &
  8. testpower.exe testsensor.exe testrelative.exe testrendercopyex.exe &
  9. testrendertarget.exe testrumble.exe testscale.exe testsem.exe &
  10. testshader.exe testshape.exe testsprite2.exe testspriteminimal.exe &
  11. teststreaming.exe testthread.exe testtimer.exe testver.exe &
  12. testviewport.exe testwm2.exe torturethread.exe checkkeys.exe &
  13. controllermap.exe testhaptic.exe testqsort.exe testresample.exe &
  14. testaudioinfo.exe testaudiocapture.exe loopwave.exe loopwavequeue.exe &
  15. testyuv.exe testgl2.exe testvulkan.exe testautomation.exe
  16. # SDL2test.lib sources (../src/test)
  17. CSRCS = SDL_test_assert.c SDL_test_common.c SDL_test_compare.c &
  18. SDL_test_crc32.c SDL_test_font.c SDL_test_fuzzer.c SDL_test_harness.c &
  19. SDL_test_imageBlit.c SDL_test_imageBlitBlend.c SDL_test_imageFace.c &
  20. SDL_test_imagePrimitives.c SDL_test_imagePrimitivesBlend.c &
  21. SDL_test_log.c SDL_test_md5.c SDL_test_random.c SDL_test_memory.c
  22. TESTLIB = SDL2test.lib
  23. # testautomation sources
  24. TASRCS = testautomation.c testautomation_audio.c testautomation_clipboard.c &
  25. testautomation_events.c testautomation_hints.c &
  26. testautomation_keyboard.c testautomation_main.c &
  27. testautomation_mouse.c testautomation_pixels.c &
  28. testautomation_platform.c testautomation_rect.c &
  29. testautomation_render.c testautomation_rwops.c &
  30. testautomation_sdltest.c testautomation_stdlib.c &
  31. testautomation_surface.c testautomation_syswm.c &
  32. testautomation_timer.c testautomation_video.c
  33. OBJS = $(TARGETS:.exe=.obj)
  34. COBJS = $(CSRCS:.c=.obj)
  35. TAOBJS = $(TASRCS:.c=.obj)
  36. all: $(TARGETS)
  37. INCPATH = -I$(%WATCOM)/h/os2 -I$(%WATCOM)/h -I../include
  38. CFLAGS = $(INCPATH) -bt=os2 -d0 -q -bm -5s -fp5 -fpi87 -sg -oteanbmier -ei
  39. LIBPATH = ..
  40. LIBS = SDL2.lib $(TESTLIB)
  41. #CFLAGS+= -DHAVE_SDL_TTF
  42. #LIBS_TTF = SDL2ttf.lib
  43. .c: ../src/test
  44. $(TESTLIB): $(COBJS)
  45. wlib -q -b -n $@ $(COBJS)
  46. .obj.exe:
  47. @%make $(TESTLIB)
  48. wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  49. .c.obj:
  50. wcc386 $(CFLAGS) -fo=$^@ $<
  51. # specials
  52. testautomation.exe: $(TAOBJS)
  53. @%make $(TESTLIB)
  54. wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  55. testoverlay2.exe: testoverlay2.obj testyuv_cvt.obj
  56. @%make $(TESTLIB)
  57. wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  58. testyuv.exe: testyuv.obj testyuv_cvt.obj
  59. @%make $(TESTLIB)
  60. wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  61. testime.exe: testime.obj
  62. @%make $(TESTLIB)
  63. wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS) $(LIBS_TTF)} op q op el file {$<} name $@
  64. clean: .SYMBOLIC
  65. @echo * Clean tests in $(BINPATH)
  66. @if exist *.obj rm *.obj
  67. @if exist *.err rm *.err
  68. distclean: .SYMBOLIC clean
  69. @if exist *.exe rm *.exe
  70. @if exist $(TESTLIB) rm $(TESTLIB)