From 0a7559013c50225388a8b68414fda698fcb183a8 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Mon, 5 Mar 2018 20:31:18 +0000 Subject: [PATCH] 6809: update rules to build startrek FP No idea of it works yet but it does now build --- Applications/games/Makefile.6809 | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Applications/games/Makefile.6809 b/Applications/games/Makefile.6809 index 3e6de745..91da2801 100644 --- a/Applications/games/Makefile.6809 +++ b/Applications/games/Makefile.6809 @@ -5,9 +5,12 @@ AR = m6809-unknown-ar LINKER = m6809-unknown-ld CFLAGS = -I../../Library/include -I../../Library/include/6809 LINKER_OPT = --oformat=raw -L../../Library/libs -lc6809 +LINKER_FP_OPT = --oformat=raw -L../../Library/libs -lm6809 -lc6809 LIBGCCDIR = $(dir $(shell $(CC) -print-libgcc-file-name)) LINKER_OPT += -L$(LIBGCCDIR) -lgcc LINKER_OPT += --script=../util/$(TARGET).link +LINKER_FP_OPT += -L$(LIBGCCDIR) -lgcc +LINKER_FP_OPT += --script=../util/$(TARGET).link ASM_OPT = -o CRT0 = ../../Library/libs/crt0_6809.o CRT0NS = ../../Library/libs/crt0nostdio_6809.o @@ -19,22 +22,30 @@ 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 startrek.c + myst08.c myst09.c myst10.c myst11.c fortune-gen.c + +SRCSFP = startrek.c OBJS = $(SRCS:.c=.o) +OBJSFP = $(SRCSFP:.c=.o) OBJSNS = $(SRCSNS:.c=.o) APPS = $(OBJS:.o=) +APPSFP = $(OBJSFP:.o=) APPSNS = $(OBJSNS:.o=) -all: $(APPS) $(APPSNS) size.report +all: $(APPS) $(APPSNS) $(APPSFP) size.report $(APPS): $(CRT0) +$(APPSFP): $(CRT0) $(APPSNS): $(CRT0NS) $(APPS) $(APPSNS): %: %.o $(LINKER) -o $@ $(LINKER_OPT) $^ +$(APPSFP): %: %.o + $(LINKER) -o $@ $(LINKER_FP_OPT) $^ + size.report: $(APPS) ls -l $^ > $@ -- 2.34.1