Makefile.os2 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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 testlocale.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 testnative.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. CFLAGS+= -wx -wcd=303
  40. LIBPATH = ..
  41. LIBS = SDL2.lib $(TESTLIB)
  42. #CFLAGS+= -DHAVE_SDL_TTF
  43. #LIBS_TTF = SDL2ttf.lib
  44. .c: ../src/test
  45. $(TESTLIB): $(COBJS)
  46. wlib -q -b -n -c $@ $(COBJS)
  47. .obj.exe:
  48. @%make $(TESTLIB)
  49. wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  50. .c.obj:
  51. wcc386 $(CFLAGS) -fo=$^@ $<
  52. # specials
  53. testautomation.exe: $(TAOBJS)
  54. @%make $(TESTLIB)
  55. wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  56. testnative.exe: testnative.obj testnativeos2.obj
  57. @%make $(TESTLIB)
  58. wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  59. testoverlay2.exe: testoverlay2.obj testyuv_cvt.obj
  60. @%make $(TESTLIB)
  61. wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  62. testyuv.exe: testyuv.obj testyuv_cvt.obj
  63. @%make $(TESTLIB)
  64. wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  65. testime.exe: testime.obj
  66. @%make $(TESTLIB)
  67. wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS) $(LIBS_TTF)} op q op el file {$<} name $@
  68. clean: .SYMBOLIC
  69. @echo * Clean tests in $(BINPATH)
  70. @if exist *.obj rm *.obj
  71. @if exist *.err rm *.err
  72. distclean: .SYMBOLIC clean
  73. @if exist *.exe rm *.exe
  74. @if exist $(TESTLIB) rm $(TESTLIB)