Makefile 518 B

1234567891011121314151617181920
  1. # Assemble the 8051dumper firmware with tpasm http://www.sqrt.com/
  2. all: 8051dumper_filled.hex
  3. .PHONY: clean
  4. # Fill unused portions of ROM with pattern that will stand out when
  5. # analyzing dumped code
  6. 8051dumper_filled.hex: 8051dumper.hex
  7. ./fill.py 8051dumper.hex 8051dumper_filled.hex
  8. # Assemble firmware
  9. 8051dumper.hex: 8051dumper.asm SFR.asm
  10. tpasm -o intel 8051dumper.hex -l 8051dumper.lst 8051dumper.asm
  11. # Clean up output files
  12. clean:
  13. $(RM) 8051dumper_filled.hex
  14. $(RM) 8051dumper.hex
  15. $(RM) 8051dumper.lst