Makefile.common (666B)
1 ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) 2 SYSDIR=$(ROOT_DIR)/../cc65_eris 3 4 all: $(TARGET).bin 5 6 $(TARGET).bin: $(TARGET).o $(SYSDIR)/eris2010.lib 7 ld65 -C $(SYSDIR)/eris2010.cfg -m $(TARGET).map -o $(TARGET).bin \ 8 $(TARGET).o $(SYSDIR)/eris2010.lib 9 10 $(TARGET)_symon.bin: $(TARGET).o $(SYSDIR)/eris2010_symon.lib 11 ld65 -C $(SYSDIR)/eris2010_symon.cfg -m $(TARGET).map -o $(TARGET)_symon.bin \ 12 $(TARGET).o $(SYSDIR)/eris2010_symon.lib 13 14 $(TARGET).o: $(TARGET).c 15 cc65 -O --cpu 65c02 $(TARGET).c 16 ca65 $(TARGET).s 17 18 19 upload: $(TARGET).bin 20 ../../../tools/boot.py $(TARGET).bin 21 22 clean: 23 rm -f *.o *.bin $(TARGET).s $(TARGET).map eris2010.lib 24