From 2861b420bd9fb8e4ddf735e8e243b59f03938bdb Mon Sep 17 00:00:00 2001 From: Daniel Loffgren Date: Mon, 21 Sep 2015 05:01:17 +0000 Subject: [PATCH] Added ROM target to Makefile, since it should soon be able to assemble it git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@49 64f78de7-aa59-e511-a0e8-0002a5492df0 --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2b523da..9ebc349 100644 --- a/Makefile +++ b/Makefile @@ -9,11 +9,18 @@ LIBAS6502= $(LIBAS6502_DIR)/libas6502.a LIBDIS6502_DIR= $(V6502_PREFIX)/dis6502 LIBDIS6502= $(LIBDIS6502_DIR)/libdis6502.a +AS= $(LIBAS6502_DIR)/as6502 +ROM= apple1.rom +ROMSRC= apple1/wozmon.s + CFLAGS+= -I$(V6502_PREFIX) -std=c99 LDFLAGS+= -ledit -lcurses -ldis6502 -las6502 -lv6502 -L$(LIBV6502_DIR) -L$(LIBAS6502_DIR) -L $(LIBDIS6502_DIR) OBJS= $(SRCS:.c=.o) -all: $(PROG) +all: $(PROG) $(ROM) + +$(ROM): $(ROMSRC) $(AS) + $(AS) -o $(ROM) $(ROMSRC) $(PROG): $(LIBV6502) $(LIBAS6502) $(LIBDIS6502) $(OBJS) $(CC) $(OBJS) -o $(PROG) $(LDFLAGS)