petwifi/Makefile
2022-08-20 17:37:42 +02:00

20 lines
349 B
Makefile

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 $@ $<