apple2a/Makefile

33 lines
743 B
Makefile
Raw Normal View History

CC65 ?= $(HOME)/trees/cc65/bin/
2018-07-28 05:30:44 +00:00
CPU = 6502
2018-07-28 19:12:52 +00:00
apple2a.rom: a.out
(dd count=5 bs=4096 if=/dev/zero ; cat a.out) > apple2a.rom
2018-07-28 05:30:44 +00:00
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
2018-07-28 19:15:54 +00:00
apple2rom.lib: crt0.o supervision.lib
cp supervision.lib apple2rom.lib
2018-07-28 05:30:44 +00:00
../cc65/bin/ar65 a apple2rom.lib crt0.o