From 935dbe6f3815e2daaba88c69cb087c8ec6ad1844 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 1 Oct 2014 15:00:00 -0400 Subject: initial framework for creating roms --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1c24c9e --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +NAME = test +OBJS = test.o + +CC = wla-6502 +LD = wlalink + +CFLAGS = +LDFLAGS = + +all: $(NAME).nes + +$(NAME).nes: $(NAME).rom header.bin + @cat header.bin $< > $@ + +$(NAME).rom: $(OBJS) linkfile + @$(LD) $(LDFLAGS) linkfile $@ + +%.o: %.s + @$(CC) $(CFLAGS) -o $< + +clean: + @rm -f $(OBJS) $(NAME).rom $(NAME).nes + +.PHONY: all clean -- cgit v1.2.3-54-g00ecf