https://bitbucket.org/coutts/5dplus
Tip revision: 0d7cbec6dea8a278a468d89a5bf23bf5670a3172 authored by Coutts on 21 June 2012, 12:32:49 UTC
Fix font sizes (thanks Alex!) and fixed problem of bmp_buffer moving around, using a pointer to the bmp_vram now instead of the raw address. Also testing ML menu with skeleton shoot menu, not working yet though.
Fix font sizes (thanks Alex!) and fixed problem of bmp_buffer moving around, using a pointer to the bmp_vram now instead of the raw address. Also testing ML menu with skeleton shoot menu, not working yet though.
Tip revision: 0d7cbec
Makefile
###################################################################################
# #
# _____ _ _ #
# | ___| | | | | #
# |___ \ __| |_ __ | |_ _ ___ #
# \ \/ _` | '_ \| | | | / __| #
# /\__/ / (_| | |_) | | |_| \__ \ #
# \____/ \__,_| .__/|_|\__,_|___/ #
# | | #
# |_| #
# #
###################################################################################
name=AUTOEXEC
CFLAGS=-nostdlib -march=armv5te -mthumb-interwork
CC=arm-none-eabi-gcc
AS=arm-none-eabi-as
AR=arm-none-eabi-ar
OBJCOPY=arm-none-eabi-objcopy
S_OBJS = entry.o \
funclist.o \
C_OBJS = bmp.o \
font-large.o \
font-med.o \
font-small.o \
init.o \
gui.o \
menu.o \
bootdisk.o \
stdio.o \
debug.o \
chdk-gui_draw.o \
shoot.o \
OBJS = $(S_OBJS) $(C_OBJS)
all: $(name).BIN
$(name).BIN: $(name).arm.elf
$(OBJCOPY) -O binary $(name).arm.elf $(name).BIN
rm -f $(name).arm.elf
cp $(name).BIN ./build_scripts
@echo;echo;ls -l AUTOEXEC.BIN
$(name).arm.elf:$(OBJS) link.script
$(CC) $(CFLAGS) -Wl,-T,link.script -o$@ $^
clean:
rm -f *.o
rm -f *.d
rm -f *.a
rm -f *.elf
rm -f .*.o.d