1
0

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. checkkeysthreads.exe &
  14. controllermap.exe testhaptic.exe testqsort.exe testresample.exe &
  15. testaudioinfo.exe testaudiocapture.exe loopwave.exe loopwavequeue.exe &
  16. testyuv.exe testgl2.exe testvulkan.exe testnative.exe testautomation.exe
  17. # SDL2test.lib sources (../src/test)
  18. CSRCS = SDL_test_assert.c SDL_test_common.c SDL_test_compare.c &
  19. SDL_test_crc32.c SDL_test_font.c SDL_test_fuzzer.c SDL_test_harness.c &
  20. SDL_test_imageBlit.c SDL_test_imageBlitBlend.c SDL_test_imageFace.c &
  21. SDL_test_imagePrimitives.c SDL_test_imagePrimitivesBlend.c &
  22. SDL_test_log.c SDL_test_md5.c SDL_test_random.c SDL_test_memory.c
  23. TESTLIB = SDL2test.lib
  24. # testautomation sources
  25. TASRCS = testautomation.c testautomation_audio.c testautomation_clipboard.c &
  26. testautomation_events.c testautomation_hints.c &
  27. testautomation_keyboard.c testautomation_main.c &
  28. testautomation_mouse.c testautomation_pixels.c &
  29. testautomation_platform.c testautomation_rect.c &
  30. testautomation_render.c testautomation_rwops.c &
  31. testautomation_sdltest.c testautomation_stdlib.c &
  32. testautomation_surface.c testautomation_syswm.c &
  33. testautomation_timer.c testautomation_video.c
  34. OBJS = $(TARGETS:.exe=.obj)
  35. COBJS = $(CSRCS:.c=.obj)
  36. TAOBJS = $(TASRCS:.c=.obj)
  37. all: $(TARGETS)
  38. INCPATH = -I$(%WATCOM)/h/os2 -I$(%WATCOM)/h -I../include
  39. CFLAGS = $(INCPATH) -bt=os2 -d0 -q -bm -5s -fp5 -fpi87 -sg -oteanbmier -ei
  40. CFLAGS+= -wx -wcd=303
  41. LIBPATH = ..
  42. LIBS = SDL2.lib $(TESTLIB)
  43. #CFLAGS+= -DHAVE_SDL_TTF
  44. #LIBS_TTF = SDL2ttf.lib
  45. .c: ../src/test
  46. $(TESTLIB): $(COBJS)
  47. wlib -q -b -n -c $@ $(COBJS)
  48. .obj.exe:
  49. @%make $(TESTLIB)
  50. wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  51. .c.obj:
  52. wcc386 $(CFLAGS) -fo=$^@ $<
  53. # specials
  54. testautomation.exe: $(TAOBJS)
  55. @%make $(TESTLIB)
  56. wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  57. testnative.exe: testnative.obj testnativeos2.obj
  58. @%make $(TESTLIB)
  59. wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  60. testoverlay2.exe: testoverlay2.obj testyuv_cvt.obj
  61. @%make $(TESTLIB)
  62. wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  63. testyuv.exe: testyuv.obj testyuv_cvt.obj
  64. @%make $(TESTLIB)
  65. wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  66. testime.exe: testime.obj
  67. @%make $(TESTLIB)
  68. wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS) $(LIBS_TTF)} op q op el file {$<} name $@
  69. clean: .SYMBOLIC
  70. @echo * Clean tests in $(BINPATH)
  71. @if exist *.obj rm *.obj
  72. @if exist *.err rm *.err
  73. distclean: .SYMBOLIC clean
  74. @if exist *.exe rm *.exe
  75. @if exist $(TESTLIB) rm $(TESTLIB)