watcom.mif 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. 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. # 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. TNOBJS = $(TNSRCS:.c=.obj)
  38. all: testutils.lib $(TARGETS)
  39. .c: ../src/test
  40. .obj.exe:
  41. wlink SYS $(SYSTEM) libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  42. .c.obj:
  43. wcc386 $(CFLAGS) -fo=$^@ $<
  44. # specials
  45. testautomation.exe: $(TAOBJS)
  46. wlink SYS $(SYSTEM) libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  47. testnative.exe: $(TNOBJS)
  48. wlink SYS $(SYSTEM) libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  49. testoverlay2.exe: testoverlay2.obj testyuv_cvt.obj
  50. wlink SYS $(SYSTEM) libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  51. testyuv.exe: testyuv.obj testyuv_cvt.obj
  52. wlink SYS $(SYSTEM) libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
  53. testime.exe: testime.obj
  54. wlink SYS $(SYSTEM) libpath $(LIBPATH) lib {$(LIBS) $(TTFLIBS)} op q op el file {$<} name $@
  55. testutils.lib: testutils.obj
  56. wlib -q -b -n -c -pa -s -t -zld -ii -io $@ $<
  57. clean: .SYMBOLIC
  58. rm -f *.obj *.err
  59. distclean: .SYMBOLIC clean
  60. rm -f *.exe *.lib