MACHINE := pet MEMCFG := mem.cfg .PHONY: all clean all: rs232.bin rs232.lst clean: rm -f rs232.bin *.o *.lst *.map rs232.bin: driver.o cl65 -v -C ${MEMCFG} -m rs232.map -o $@ $^ %.lst: %.bin @# the start address shouldn't be hardcoded here... da65 -o $@ -S 0x7000 $< %.o: %.a65 ca65 -v -l $(patsubst %.o,%.lst,$@) -t ${MACHINE} -o $@ $<