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 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. all: \
  10. iplrom30.s \
  11. iplromxv.s \
  12. human.s \
  13. commando.s \
  14. cmd.s \
  15. process.s \
  16. bind.s \
  17. opmdrv3.s \
  18. mopmdrv.s \
  19. pcm8.s \
  20. mxp.s \
  21. mdxp.s \
  22. mxdrv/2.06+16_Rel2++/mxdrvpp.s \
  23. mxdrv/2.06+16_Rel.3/mxdrv30.s \
  24. mxdrv/2.06+16_Rel.3/mxdrv16.s \
  25. mxdrv/2.06+162_03/mxdrv16x.s \
  26. mxdrv/2.06+17_Rel.X5-S/mxdrv17.s \
  27. mxdrv/2.06+16_Rel.1/mxdrv16.s \
  28. mxdrv/2.06+16_Rel.2/mxdrv16.s
  29. translations: mxdrv17.en.s
  30. mxdrv/%.s: mxdrv/%.x mxdrv/%.lab
  31. dis_include=$(DIS_INCLUDE) $(DIS) $(DIS_DEBUG) -h -k -m68030 -q1 -B -M -w16 -o120 -g"$(patsubst %.s,%.lab,$@)" --overwrite "$<" "$@"
  32. sed -i -e 's/; Code Generate date .\+/;/' "$@"
  33. iplrom30.s: iplrom30.dat iplrom30.lab iplrom30.tab
  34. 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 $< $@
  35. sed -i -e 's/; Code Generate date .\+/;/' $@
  36. iplromxv.s: iplromxv.dat iplromxv.lab iplromxv.tab
  37. 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 $< $@
  38. sed -i -e 's/; Code Generate date .\+/;/' $@
  39. %.en.s: %.s %.en.sed
  40. sed -f $(patsubst %.s,%.sed,$@) < $< > $@
  41. %.s: %.x %.lab
  42. dis_include=$(DIS_INCLUDE) $(DIS) $(DIS_DEBUG) -b2 -h -m68000 --sp -q1 -B -M -o$(COLUMNS) -g$(patsubst %.s,%.lab,$@) --overwrite $< $@
  43. sed -i -f const.sed $@
  44. sed -i -e 's/; Code Generate date .\+/;/' $@
  45. # Useful for new .x files
  46. %.new.s: %.x
  47. dis_include=$(DIS_INCLUDE) $(DIS) $(DIS_DEBUG) -b2 -h -m68000 --sp -q1 -B -M -o$(COLUMNS) -e$(patsubst %.s,%.lab,$@) --overwrite $< $@
  48. sed -i -e 's/; Code Generate date .\+/;/' $@
  49. mdxp.s: mdxp.r mdxp.lab
  50. dis_include=$(DIS_INCLUDE) $(DIS) $(DIS_DEBUG) -b2 -h -m68000 --sp -q1 -B -M -o$(COLUMNS) -g$(patsubst %.s,%.lab,$@) --overwrite $< $@
  51. sed -i -e 's/; Code Generate date .\+/;/' $@
  52. human.s: human.sys human.lab
  53. dis_include=$(DIS_INCLUDE) $(DIS) $(DIS_DEBUG) -b2 -h -m68030 --sp -q1 -B -M -o$(COLUMNS) -g$(patsubst %.s,%.lab,$@) --overwrite $< $@
  54. sed -i -f const.sed $@
  55. sed -i -e 's/; Code Generate date .\+/;/' $@
  56. opmdrv3.s: opmdrv3.x opmdrv3.lab opmdrv3.tab
  57. 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 $< $@
  58. sed -i -f const.sed $@
  59. sed -i -e 's/; Code Generate date .\+/;/' $@
  60. clean:
  61. rm -f *.s mxdrv/*/*.s