From 0a28dea63b778e51a91ea04b07c8869a8fa543a5 Mon Sep 17 00:00:00 2001 From: Lawrence Kesteloot Date: Tue, 31 Jul 2018 15:02:57 -0700 Subject: [PATCH] Make listings for each assembly file. --- .gitignore | 1 + Makefile | 13 +++---------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 190a03d..f8807f3 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ platform.s *.map *.rom a.out +*.lst apple2rom.lib diff --git a/Makefile b/Makefile index 56eec20..d174260 100644 --- a/Makefile +++ b/Makefile @@ -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