mirror of
https://github.com/bradgrantham/apple2a.git
synced 2024-12-22 13:30:06 +00:00
Make listings for each assembly file.
This commit is contained in:
parent
eba8aa7637
commit
0a28dea63b
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,4 +6,5 @@ platform.s
|
||||
*.map
|
||||
*.rom
|
||||
a.out
|
||||
*.lst
|
||||
apple2rom.lib
|
||||
|
13
Makefile
13
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
|
||||
|
Loading…
Reference in New Issue
Block a user