X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=ROM2%2FMakefile;fp=ROM2%2FMakefile;h=38780bfa9582d758ce4fdff80eb0ef8d8c5c8093;hb=c107bf29a234bf80a7762e838628ac613456f838;hp=ac77ee3cdaec8b3c1976d894477fe09cefdcbba8;hpb=2d5a6a45a379ce7d30919ac9f86015eaa4b9f3c9;p=uccvend-snackrom.git diff --git a/ROM2/Makefile b/ROM2/Makefile index ac77ee3..38780bf 100644 --- a/ROM2/Makefile +++ b/ROM2/Makefile @@ -41,7 +41,7 @@ rom2.elf: $(OBJS) memory.x $(SIZE) $@ clean: - rm -f *.o *.elf *.s19 *.b *.a rom.tar.bz2 romsrc.c crctab.h m68hc11-gdb gencrctab + rm -f *.o *.elf *.s19 *.b *.a rom.tar.bz2 romsrc.s crctab.h m68hc11-gdb gencrctab # # Some useful rules @@ -53,11 +53,11 @@ size: rom2.s19 $(SIZE) $< rom.tar.bz2: - rm -f romsrc.c crctab.h + rm -f romsrc.s crctab.h tar cjf rom.tar.bz2 README Makefile gdbsimrc *.pl *.c *.h *.s *.x -romsrc.c: rom.tar.bz2 - perl -w src2c.pl < $< > $@ +romsrc.s: rom.tar.bz2 src2asm.pl + perl -w src2asm.pl < $< > $@ xmodem.c: crctab.h @@ -82,6 +82,7 @@ crctab.h: gencrctab .elf.b: $(OBJCOPY) --output-target=binary --gap-fill=255 \ $(OBJCOPY_FLAGS) $< $*.b + @perl -e '$$sum = 0;while(read STDIN, $$a, 1){$$sum += ord($$a); $$sum = $$sum&0xffff;} printf "Checksum is \%x\n", $$sum' < $@ m68hc11-gdb: /usr/bin/m68hc11-gdb sed -e 's|m68hc11eepr/reg 0xb000 512|m68hc11eepr/reg 0x4000 1 |' < $< > $@