Makefile 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. includes := sysdefs.equ.asm\
  2. main.code.asm\
  3. main.bss.asm\
  4. im2setup.equ.asm\
  5. im2setup.code.asm\
  6. frametime.code.asm\
  7. frametime.bss.asm\
  8. syncvint.code.asm\
  9. test-ack-timing.code.asm\
  10. test-ack-timing.bss.asm\
  11. test-vram-timing.code.asm\
  12. zipped := USAGE.txt LICENSE.md\
  13. vdptest.asm\
  14. sysdefs.equ.asm\
  15. main.code.asm\
  16. main.bss.asm\
  17. im2setup.equ.asm\
  18. im2setup.code.asm\
  19. frametime.code.asm\
  20. frametime.bss.asm\
  21. syncvint.code.asm\
  22. test-ack-timing.code.asm\
  23. test-ack-timing.bss.asm\
  24. test-vram-timing.code.asm\
  25. loadertpl.py asc2cld.py\
  26. blank1.dsk.gz blank2.dsk.gz\
  27. Makefile asc2cas.py raw2cas.py raw2bin.py\
  28. vdptest.cas vdptest.bas vdptest.bin vdptest1.dsk vdptest2.dsk\
  29. orgdsk := 0x9000
  30. orgcas := $(orgdsk)
  31. all: vdptest.cas vdptest.bas vdptest.bin vdptest1.dsk vdptest2.dsk vdptest.zip
  32. zip: vdptest.zip
  33. cas: vdptest.cas
  34. bas: vdptest.bas
  35. bin: vdptest.bin
  36. dsk: vdptest.bas vdptest.bin vdptest1.dsk vdptest2.dsk
  37. vdptest.zip: $(zipped)
  38. rm -f $@
  39. zip $@ $+
  40. vdptest1.dsk: vdptest.bas vdptest.bin
  41. gzip -cd blank1.dsk.gz > $@
  42. mcopy -i $@ vdptest.bas ::
  43. mcopy -i $@ vdptest.bin ::
  44. vdptest2.dsk: vdptest.bas vdptest.bin
  45. gzip -cd blank2.dsk.gz > $@
  46. mcopy -i $@ vdptest.bas ::
  47. mcopy -i $@ vdptest.bin ::
  48. loader.cld: loadertpl.py vdptestc.sym
  49. python3 $< cas $(orgcas) > $@ || rm -f $@
  50. loader.cas: loader.cld
  51. python3 cld2cas.py $< $@ VDPTST
  52. vdptest.cas: vdptest.raw loader.cas
  53. python3 raw2cas.py $< - VDPtst $(orgcas) | cat loader.cas - > $@
  54. vdptest.bas: loadertpl.py vdptestd.sym
  55. python3 $< dsk $(orgdsk) > $@
  56. vdptest.bin vdptestd.sym: vdptest.asm $(includes)
  57. pasmo --alocal --msx --equ origin=$(orgdsk) $< $@ vdptestd.sym
  58. vdptest.raw vdptestc.sym: vdptest.asm $(includes)
  59. pasmo --alocal --bin --equ origin=$(orgcas) $< $@ vdptestc.sym
  60. check:
  61. cd test_asc2cld && make $@ && cd ..
  62. clean-base:
  63. rm -f vdptest.cas vdptest.bas vdptest.bin vdptest.raw \
  64. loader.cas loader.cld vdptest.bas vdptestc.sym vdptestd.sym \
  65. vdptest1.dsk vdptest2.dsk vdptest.zip
  66. clean: clean-base
  67. cd test_asc2cld && make $@ && cd ..
  68. distclean: clean-base
  69. cd test_asc2cld && make $@ && cd ..
  70. .PHONY: all zip bas bin cas dsk check clean-base clean distclean