From e03925fc6510a213e15af467743924b6e927bbf5 Mon Sep 17 00:00:00 2001 From: Tormod Volden Date: Wed, 30 Mar 2016 17:56:42 +0200 Subject: [PATCH] levee: Build with optimization on 6809 Works with the latest gcc6809 patch. Signed-off-by: Tormod Volden --- Applications/levee/Makefile.6809 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Applications/levee/Makefile.6809 b/Applications/levee/Makefile.6809 index 3ae1d422..2cf23184 100644 --- a/Applications/levee/Makefile.6809 +++ b/Applications/levee/Makefile.6809 @@ -5,7 +5,7 @@ ASM = m6809-unknown-as AR = m6809-unknown-ar LINKER = lwlink CFLAGS = -I../../Library/include -I../../Library/include/6502 -COPT = -O0 -fomit-frame-pointer +COPT = -Os -fomit-frame-pointer LINKER_OPT = --format=raw -L../../Library/libs -lc6809 LIBGCCDIR = $(dir $(shell $(CC) -print-libgcc-file-name)) LINKER_OPT += -L$(LIBGCCDIR) -lgcc @@ -27,7 +27,7 @@ levee: $(OBJS) $(OBJS): $(CSRCS) .c.o: - $(CC) $(CFLAGS) -c $(@:.o=.c) + $(CC) $(CFLAGS) $(COPT) -c $(@:.o=.c) clean: rm -rf $(OBJS) *.lst *.sym *.map *.noi *.lk *.ihx *.tmp *~ *.o *.asm levee levee.bin -- 2.34.1