🛠️🐜 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.

77 lines
3.0 KiB

  1. # Open Watcom makefile to build SDL2 tests for OS/2
  2. # wmake -f Makefile.os2
  3. INCPATH = -I"$(%WATCOM)/h/os2" -I"$(%WATCOM)/h" -I"../include"
  4. CFLAGS = $(INCPATH) -bt=os2 -d0 -q -bm -5s -fp5 -fpi87 -sg -oteanbmier -ei
  5. CFLAGS+= -wx -wcd=303
  6. LIBPATH = ..
  7. LIBS = SDL2.lib SDL2test.lib
  8. #CFLAGS+= -DHAVE_SDL_TTF
  9. #TTFLIBS = SDL2ttf.lib
  10. TARGETS = testatomic.exe testdisplayinfo.exe testbounds.exe testdraw2.exe &
  11. testdrawchessboard.exe testdropfile.exe testerror.exe testfile.exe &
  12. testfilesystem.exe testgamecontroller.exe testgeometry.exe testgesture.exe &
  13. testhittesting.exe testhotplug.exe testiconv.exe testime.exe testlocale.exe &
  14. testintersections.exe testjoystick.exe testkeys.exe testloadso.exe &
  15. testlock.exe testmessage.exe testoverlay2.exe testplatform.exe &
  16. testpower.exe testsensor.exe testrelative.exe testrendercopyex.exe &
  17. testrendertarget.exe testrumble.exe testscale.exe testsem.exe &
  18. testshader.exe testshape.exe testsprite2.exe testspriteminimal.exe &
  19. teststreaming.exe testthread.exe testtimer.exe testver.exe &
  20. testviewport.exe testwm2.exe torturethread.exe checkkeys.exe &
  21. checkkeysthreads.exe testmouse.exe &
  22. controllermap.exe testhaptic.exe testqsort.exe testresample.exe &
  23. testaudioinfo.exe testaudiocapture.exe loopwave.exe loopwavequeue.exe &
  24. testsurround.exe testyuv.exe testgl2.exe testvulkan.exe testnative.exe &
  25. testautomation.exe
  26. # testautomation sources
  27. TASRCS = testautomation.c testautomation_audio.c testautomation_clipboard.c &
  28. testautomation_events.c testautomation_hints.c &
  29. testautomation_keyboard.c testautomation_main.c &
  30. testautomation_mouse.c testautomation_pixels.c &
  31. testautomation_platform.c testautomation_rect.c &
  32. testautomation_render.c testautomation_rwops.c &
  33. testautomation_sdltest.c testautomation_stdlib.c &
  34. testautomation_surface.c testautomation_syswm.c &
  35. testautomation_timer.c testautomation_video.c
  36. OBJS = $(TARGETS:.exe=.obj)
  37. COBJS = $(CSRCS:.c=.obj)
  38. TAOBJS = $(TASRCS:.c=.obj)
  39. all: $(TARGETS)
  40. .c: ../src/test
  41. .obj.exe:
  42. wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  43. .c.obj:
  44. wcc386 $(CFLAGS) -fo=$^@ $<
  45. # specials
  46. testautomation.exe: $(TAOBJS)
  47. wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  48. testnative.exe: testnative.obj testnativeos2.obj
  49. wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  50. testoverlay2.exe: testoverlay2.obj testyuv_cvt.obj
  51. wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  52. testyuv.exe: testyuv.obj testyuv_cvt.obj
  53. wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  54. testime.exe: testime.obj
  55. wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS) $(TTFLIBS)} op q op el file {$<} name $@
  56. clean: .SYMBOLIC
  57. @if exist *.obj rm *.obj
  58. @if exist *.err rm *.err
  59. distclean: .SYMBOLIC clean
  60. @if exist *.exe rm *.exe