Created
May 30, 2017 00:45
-
-
Save WillSams/5362eda3c93798e591381692658b24be to your computer and use it in GitHub Desktop.
Makefile used for SMB 1 Disassembly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AS = ca65 | |
LD = ld65 | |
OBJDUMP = od65 | |
DEBUGGER = mednafen | |
OBJS=smb.o | |
ROM = smb | |
BIN = $(ROM).nes | |
all: $(BIN) | |
clean: | |
rm -f $(BIN) && rm -f $(shell find . -name '*.o') | |
$(BIN): $(OBJS) | |
$(LD) $< -o $@ -C ./nesfile.ini | |
%.o: %.s | |
$(AS) $< -o $@ | |
dump: | |
$(OBJDUMP) --dump-all $(OBJS) > $(ROM).dump | |
run: | |
echo 'Mednafen - Hold Alt-D to enter debugger.' | |
echo 'Press any key to continue to execute the rom' | |
sed -n q </dev/tty; | |
$(DEBUGGER) -nes.enable 1 $(BIN) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment