From be4d9a57633e40089a4216b09bb0de2bc1cfba28 Mon Sep 17 00:00:00 2001 From: Neal Andrew Crook Date: Sun, 22 May 2016 19:50:27 +0100 Subject: [PATCH] oops, commit working version. --- Applications/games/Makefile.6809 | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/Applications/games/Makefile.6809 b/Applications/games/Makefile.6809 index d8812e3b..afb115d5 100644 --- a/Applications/games/Makefile.6809 +++ b/Applications/games/Makefile.6809 @@ -4,23 +4,28 @@ CC = m6809-unknown-gcc ASM = m6809-unknown-as AR = m6809-unknown-ar LINKER = lwlink -CFLAGS = -I../../../Library/include -I../../../Library/include/6502 -LINKER_OPT = --format=raw -L../../../Library/libs -lc6809 +CFLAGS = -I../../Library/include -I../../Library/include/6502 +LINKER_OPT = --format=raw -L../../Library/libs -lc6809 LIBGCCDIR = $(dir $(shell $(CC) -print-libgcc-file-name)) LINKER_OPT += -L$(LIBGCCDIR) -lgcc -LINKER_OPT += --script=../../util/$(TARGET).link +LINKER_OPT += --script=../util/$(TARGET).link ASM_OPT = -o -CRT0 = ../../../Library/libs/crt0_6809.o +CRT0 = ../../Library/libs/crt0_6809.o .SUFFIXES: .c .o +SRCSNS = qrun.c fortune.c SRCS = adv01.c adv02.c adv03.c adv04.c adv05.c adv06.c adv07.c \ adv08.c adv09.c adv10.c adv11.c adv12.c adv13.c adv14a.c adv14b.c \ myst01.c myst02.c myst03.c myst04.c myst05.c myst06.c myst07.c \ - myst08.c myst09.c myst10.c myst11.c fortune-gen.c + myst08.c myst09.c myst10.c myst11.c fortune.c fortune-gen.c + +SRCSBAD = OBJS = $(SRCS:.c=.o) +OBJSNS = $(SRCSNS:.c=.rel) +OBJSBAD = $(SRCSBAD:.c=.rel) APPS = $(OBJS:.o=) @@ -30,6 +35,8 @@ $(OBJS): $(SRCS) $(APPS): $(CRT0) +$(APPSNS): OPTS = --nostdio + %: %.o $(LINKER) -o $@ $(LINKER_OPT) $(CRT0) $< -- 2.34.1