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
+ -msoft-reg-count=0 -ffixed-z -g -fomit-frame-pointer
LDFLAGS = -m68hc11 -mshort -Wl,-m,m68hc11elfb \
-nostartfiles \
rom.tar.bz2:
rm -f romsrc.s crctab.h
- tar cjf rom.tar.bz2 README Makefile gdbsimrc *.pl *.c *.h *.s *.x
+ tar c README Makefile gdbsimrc *.pl *.c *.h *.s *.x | bzip2 -c -9 > $@
romsrc.s: rom.tar.bz2 src2asm.pl
perl -w src2asm.pl < $< > $@
crctab.h: gencrctab
./gencrctab > $@
-#
-# Implicit rules
-#
-# .elf is for the simulator and gdb
-# .s19 is for some downloader and the simulator
-# .b is a binary dump
-#
.SUFFIXES: .elf .s19 .b
.elf.s19: