Sharp X68000 Disassemblies
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.

Makefile 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. DIS=dis
  2. DIS_INCLUDE=inc
  3. ifneq ($(DEBUG),)
  4. DIS_DEBUG=-x -a1
  5. else
  6. DIS_DEBUG=
  7. endif
  8. COLUMNS=120
  9. # build tools
  10. RUN68=run68
  11. XPATH=./
  12. HAS=$(RUN68) $(XPATH)has.x
  13. HLK=$(RUN68) $(XPATH)hlk.r
  14. .PHONY: all
  15. all: \
  16. iplrom30.s \
  17. iplromxv.s \
  18. human.s \
  19. commando.s \
  20. cmd.s \
  21. process.s \
  22. has.s \
  23. hlk.s \
  24. bind.s \
  25. opmdrv3.s \
  26. mopmdrv.s \
  27. pcm8.s \
  28. mxdrv/mxp.s \
  29. mxdrv/mdxp.s \
  30. mxdrv/mxc.s \
  31. mxdrv/2.06+15/mxdrv.s \
  32. mxdrv/2.06+162_03/mxdrv16x.s \
  33. mxdrv/2.06+16_Rel.1/mxdrv16.s \
  34. mxdrv/2.06+16_Rel.2/mxdrv16.s \
  35. mxdrv/2.06+16_Rel.3/mxdrv16.s \
  36. mxdrv/2.06+16_Rel.3/mxdrv30.s \
  37. mxdrv/2.06+16_Rel2++/mxdrvpp.s \
  38. mxdrv/2.06+17_Rel.X5-S/mxdrv17.s
  39. translations: \
  40. en/bind.x \
  41. en/process.x \
  42. en/mxdrv/mxc.x \
  43. en/mxdrv/2.06+17_Rel.X5-S/mxdrv17.x
  44. en/%.s: %.s en/%.sed
  45. sed -f $(patsubst %.s,%.sed,$@) < $< > $@
  46. en/%.sed: %.en.strings xlate
  47. mkdir -p $(shell dirname $@)
  48. cat $< | ./xlate > $@
  49. en/%.x: en/%.o
  50. $(HLK) $< -o $@
  51. en/%.o: en/%.s
  52. $(HAS) $< -o $@
  53. %.s: %.[xr] %.lab
  54. dis_include=$(DIS_INCLUDE) $(DIS) $(DIS_DEBUG) -b2 -h -m68000 --sp -q1 -B -M -o$(COLUMNS) -g$(patsubst %.s,%.lab,$@) --overwrite $< $@
  55. sed -i -f const.sed -f clean-s.sed $@
  56. # Useful for new .x files
  57. %.new.s: %.[xr]
  58. dis_include=$(DIS_INCLUDE) $(DIS) $(DIS_DEBUG) -b2 -h -m68000 --sp -q1 -B -M -o$(COLUMNS) -e$(patsubst %.s,%.lab,$@) --overwrite $< $@
  59. sed -i -f const.sed -f clean-s.sed $@
  60. mxdrv/%.s: mxdrv/%.[xr] mxdrv/%.lab
  61. dis_include=$(DIS_INCLUDE) $(DIS) $(DIS_DEBUG) -h -k -m68030 -q1 -B -M -w16 -o120 -g"$(patsubst %.s,%.lab,$@)" --overwrite "$<" "$@"
  62. sed -i -f const.sed -f clean-s.sed $@
  63. iplrom30.s: iplrom30.dat iplrom30.lab iplrom30.tab
  64. dis_include=$(DIS_INCLUDE) $(DIS) $(DIS_DEBUG) -b2 -h -i -m68030 -m68882 -zfe0000,ff0038 -q1 -B -M -w16 --exclude-fefunc-mac -Tiplrom30.tab -giplrom30.lab --overwrite $< $@
  65. sed -i -f const.sed -f clean-s.sed $@
  66. iplromxv.s: iplromxv.dat iplromxv.lab iplromxv.tab
  67. dis_include=$(DIS_INCLUDE) $(DIS) $(DIS_DEBUG) -b2 -h -i -m68030 -m68882 -zfe0000,ff0010 -q1 -B -M -w16 --exclude-fefunc-mac -Tiplromxv.tab -giplromxv.lab --overwrite $< $@
  68. sed -i -f const.sed -f clean-s.sed $@
  69. mdxp.s: mdxp.r mdxp.lab
  70. dis_include=$(DIS_INCLUDE) $(DIS) $(DIS_DEBUG) -b2 -h -m68000 --sp -q1 -B -M -o$(COLUMNS) -g$(patsubst %.s,%.lab,$@) --overwrite $< $@
  71. sed -i -f const.sed -f clean-s.sed $@
  72. human.s: human.sys human.lab
  73. dis_include=$(DIS_INCLUDE) $(DIS) $(DIS_DEBUG) -b2 -h -m68030 --sp -q1 -B -M -o$(COLUMNS) -g$(patsubst %.s,%.lab,$@) --overwrite $< $@
  74. sed -i -f const.sed -f clean-s.sed $@
  75. opmdrv3.s: opmdrv3.x opmdrv3.lab opmdrv3.tab
  76. dis_include=$(DIS_INCLUDE) $(DIS) $(DIS_DEBUG) -b2 -h -m68000 --sp -q1 -B -M -o$(COLUMNS) -w16 -g$(patsubst %.s,%.lab,$@) -T$(patsubst %.s,%.tab,$@) --overwrite $< $@
  77. sed -i -f const.sed -f clean-s.sed $@
  78. mopmdrv.s: mopmdrv.x mopmdrv.lab mopmdrv.tab
  79. dis_include=$(DIS_INCLUDE) $(DIS) $(DIS_DEBUG) -b2 -h -m68000 --sp -q1 -B -M -o$(COLUMNS) -w16 -g$(patsubst %.s,%.lab,$@) -T$(patsubst %.s,%.tab,$@) --overwrite $< $@
  80. sed -i -f const.sed -f clean-s.sed $@
  81. xlate: xlate.c
  82. gcc xlate.c -o xlate
  83. sclean:
  84. find . -type f -name "*.s" -exec rm -f {} \;
  85. clean:
  86. rm -f *.o mxdrv/*.o mxdrv/*/*.o
  87. rm -f en/*.o en/mxdrv/*.o en/mxdrv/*/*.o
  88. rm -f en/*.sed en/mxdrv/*.sed en/mxdrv/*/*.sed