generated from Dario48/smb_from_ass
Initial commit
This commit is contained in:
commit
0c07c770a9
14 changed files with 20819 additions and 0 deletions
29
Makefile
Normal file
29
Makefile
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
cl65 ?= cl65
|
||||
|
||||
.PHONY: build debug clean
|
||||
|
||||
build: smb.nes
|
||||
|
||||
debug: OBJ_DEBUG_ARGS = --create-dep obj/nes/smb.d -v -g
|
||||
debug: ROM_DEBUG_ARGS = -Wl --dbgfile,smb.nes.dbg
|
||||
debug: build
|
||||
|
||||
obj/nes/smbdishl.o: src/smbdishl.s src/smb_chr.chr
|
||||
$(cl65) -t none -c $(OBJ_DEBUG_ARGS) --include-dir src -o $@ $<
|
||||
|
||||
smb.nes smb.map: obj/nes/smbdishl.o src/nes.cfg
|
||||
$(cl65) -t none --mapfile smb.map $(ROM_DEBUG_ARGS) -o smb.nes -C src/nes.cfg $<
|
||||
|
||||
src/smb_chr.chr:
|
||||
if [ -s chr/smb_chr.chr ]; then \
|
||||
if [ -s src/smb_chr.chr ]; then \
|
||||
cmp -s $@ chr/smb_chr.chr || cp chr/smb_chr.chr $@ \
|
||||
else \
|
||||
cp chr/smb_chr.chr \
|
||||
fi \
|
||||
else \
|
||||
[ -s src/smb_chr.chr ] || $(error missing chr)\
|
||||
fi
|
||||
|
||||
clean:
|
||||
rm -f smb.nes.dbg smb.map smb.nes smb.nes.ndx obj/nes/smbdishl.o obj/nes/smb.d
|
||||
Loading…
Add table
Add a link
Reference in a new issue