apple2a/Makefile
2018-07-27 22:30:44 -07:00

27 lines
609 B
Makefile

CC65 = $(HOME)/trees/cc65/bin/
CPU = 6502
a.out: main.o interrupt.o vectors.o apple2rom.cfg apple2rom.lib
$(CC65)/ld65 -C apple2rom.cfg -m main.map --dbgfile main.dbg interrupt.o vectors.o main.o apple2rom.lib
clean:
rm *.o a.out main.s
main.s: main.c
$(CC65)/cc65 -t none -O --cpu $(CPU) main.c
main.o: main.s
$(CC65)/ca65 --cpu $(CPU) main.s
interrupt.o: interrupt.s
$(CC65)/ca65 --cpu $(CPU) interrupt.s
vectors.o: vectors.s
$(CC65)/ca65 --cpu $(CPU) vectors.s
crt0.o: crt0.s
$(CC65)/ca65 --cpu $(CPU) crt0.s
apple2rom.lib: crt0.o
../cc65/bin/ar65 a apple2rom.lib crt0.o