Make listings for each assembly file.

This commit is contained in:
Lawrence Kesteloot 2018-07-31 15:02:57 -07:00
parent eba8aa7637
commit 0a28dea63b
2 changed files with 4 additions and 10 deletions

1
.gitignore vendored
View File

@ -6,4 +6,5 @@ platform.s
*.map
*.rom
a.out
*.lst
apple2rom.lib

View File

@ -21,29 +21,22 @@ a.out: main.o interrupt.o vectors.o platform.o apple2rom.cfg $(LIB)
$(CC65)/ld65 -C apple2rom.cfg -m main.map --dbgfile main.dbg interrupt.o vectors.o platform.o main.o $(LIB)
clean:
rm -f *.o a.out platform.s main.s $(LIB) tmp.lib
rm -f *.o *.lst a.out platform.s main.s $(LIB) tmp.lib
main.s: main.c
$(CC65)/cc65 -t none -O --cpu $(CPU) $<
main.o: main.s
$(CC65)/ca65 --cpu $(CPU) $<
%.o: %.s
$(CC65)/ca65 -l $(<:.s=.lst) --cpu $(CPU) $<
# platform.c contains inline assembly and code that must not be optimized
platform.s: platform.c
$(CC65)/cc65 -t none --cpu $(CPU) $<
platform.o: platform.s
$(CC65)/ca65 --cpu $(CPU) $<
interrupt.o: interrupt.s
$(CC65)/ca65 --cpu $(CPU) $<
vectors.o: vectors.s
$(CC65)/ca65 --cpu $(CPU) $<
crt0.o: crt0.s
$(CC65)/ca65 --cpu $(CPU) $<
$(LIB): crt0.o supervision.lib
cp supervision.lib tmp.lib