levee: Build with optimization on 6809
authorTormod Volden <debian.tormod@gmail.com>
Wed, 30 Mar 2016 15:56:42 +0000 (17:56 +0200)
committerAlan Cox <alan@linux.intel.com>
Sat, 9 Apr 2016 15:56:09 +0000 (16:56 +0100)
Works with the latest gcc6809 patch.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Applications/levee/Makefile.6809

index 3ae1d42..2cf2318 100644 (file)
@@ -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