Works with the latest gcc6809 patch.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
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
$(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