X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=ROM2%2FMakefile;fp=ROM2%2FMakefile;h=71e8c7d8281aadf5ceac4dc250cb5a4b4ae84c51;hb=db71d9706715bf39fa5c5696108019bacd8181fa;hp=17694c0539392854a45cfa7061aaecf12eaa7aa5;hpb=f5bc521c83d95d35e852747402a44d1411252c2b;p=uccvend-snackrom.git diff --git a/ROM2/Makefile b/ROM2/Makefile index 17694c0..71e8c7d 100644 --- a/ROM2/Makefile +++ b/ROM2/Makefile @@ -3,9 +3,8 @@ OBJS = \ motors.o keypad.o display_basic.o coinmech.o chime.o \ helpers.o main_basic.o sci.o \ - vectors.o start.o + vectors.o start.o romsrc.o xmodem.o INCLUDES = vend.h keypad.h chime.h asm.h display_basic.h ports.h types.h - # debugging doesn't get compiled into the ROM image CFLAGS = -m68hc11 -mshort -Wall -O1 \ -msoft-reg-count=0 -ffixed-z -g -fomit-frame-pointer @@ -39,9 +38,10 @@ all: rom2.b rom2.elf rom2.s19 rom2.elf: $(OBJS) memory.x $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBADD) + $(SIZE) $@ clean: - rm -f *.o *.elf *.s19 *.b *.a + rm -f *.o *.elf *.s19 *.b *.a rom.tar.bz2 romsrc.c # # Some useful rules @@ -52,6 +52,12 @@ dump: rom2.elf size: rom2.s19 $(SIZE) $< +rom.tar.bz2: + rm -f romsrc.c + tar cjf rom.tar.bz2 README Makefile *.c *.h *.s *.x + +romsrc.c: rom.tar.bz2 + perl -w src2c.pl < $< > $@ # # Implicit rules @@ -67,5 +73,4 @@ size: rom2.s19 .elf.b: $(OBJCOPY) --output-target=binary --gap-fill=255 \ - --only-section=.data $(OBJCOPY_FLAGS) $< $*.b - + $(OBJCOPY_FLAGS) $< $*.b