MACHINE := pet MEMCFG := mem.cfg .PHONY: all clean all: rs232.prg clean: rm -f rs232.bin *.o *.lst *.map rs232.prg: driver.o cl65 -v -C ${MEMCFG} -m rs232.map -o $@ $^ %.o: %.a65 ca65 -v -l $(patsubst %.o,%.lst,$@) -t ${MACHINE} -o $@ $<