oops, commit working version.
authorNeal Andrew Crook <neal@pippaluk.org.uk>
Sun, 22 May 2016 18:50:27 +0000 (19:50 +0100)
committerNeal Andrew Crook <neal@pippaluk.org.uk>
Sun, 22 May 2016 18:50:27 +0000 (19:50 +0100)
Applications/games/Makefile.6809

index d8812e3..afb115d 100644 (file)
@@ -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) $<