From 075ff80b97e73ee62233478a489cb264c2c2712b Mon Sep 17 00:00:00 2001 From: Tormod Volden Date: Tue, 31 May 2016 14:36:08 +0200 Subject: [PATCH] Applications/games/Makefile.6809: Use non-stdio crt0 when possible Signed-off-by: Tormod Volden --- Applications/games/Makefile.6809 | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/Applications/games/Makefile.6809 b/Applications/games/Makefile.6809 index acf65e59..294c7990 100644 --- a/Applications/games/Makefile.6809 +++ b/Applications/games/Makefile.6809 @@ -11,6 +11,7 @@ LINKER_OPT += -L$(LIBGCCDIR) -lgcc LINKER_OPT += --script=../util/$(TARGET).link ASM_OPT = -o CRT0 = ../../Library/libs/crt0_6809.o +CRT0NS = ../../Library/libs/crt0nostdio_6809.o .SUFFIXES: .c .o @@ -19,30 +20,25 @@ 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.c fortune-gen.c - -SRCSBAD = + myst08.c myst09.c myst10.c myst11.c fortune-gen.c OBJS = $(SRCS:.c=.o) -OBJSNS = $(SRCSNS:.c=.rel) -OBJSBAD = $(SRCSBAD:.c=.rel) +OBJSNS = $(SRCSNS:.c=.o) APPS = $(OBJS:.o=) +APPSNS = $(OBJSNS:.o=) -all: $(APPS) size.report +all: $(APPS) $(APPSNS) size.report $(APPS): $(CRT0) +$(APPSNS): $(CRT0NS) -$(APPSNS): OPTS = --nostdio - -$(APPS): %: %.o +$(APPS) $(APPSNS): %: %.o $(LINKER) -o $@ $(LINKER_OPT) $^ size.report: $(APPS) ls -l $^ > $@ clean: - rm -f $(OBJS) $(APPS) $(SRCS:.c=) core *~ *.asm *.lst *.sym *.map *.noi *.lk *.ihx *.tmp *.bin size.report + rm -f $(OBJS) $(OBJSNS) $(APPS) $(APPSNS) *.lst *.map size.report -rmbak: - rm -f *~ core -- 2.34.1