2002-03-28 15:09:10 +00:00
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
|
2006-03-07 12:45:45 +00:00
|
|
|
INCLUDES=$(TARGET_INC) -Iinclude -I$(FIRMDIR) -Iexport -Icommon -Idrivers -I$(BUILDDIR)
|
2002-03-28 15:09:10 +00:00
|
|
|
|
2006-02-24 13:48:52 +00:00
|
|
|
CFLAGS = $(INCLUDES) $(GCCOPTS) $(TARGET) $(BUILDDATE) $(EXTRA_DEFINES) \
|
2005-09-06 18:03:50 +00:00
|
|
|
-DMEM=${MEMORYSIZE}
|
2004-10-04 13:03:33 +00:00
|
|
|
|
2005-03-06 15:40:03 +00:00
|
|
|
# This sets up 'SRC' based on the files mentioned in SOURCES
|
|
|
|
include $(TOOLSDIR)/makesrc.inc
|
|
|
|
|
2004-10-04 13:03:33 +00:00
|
|
|
SOURCES = $(SRC)
|
|
|
|
OBJS2 := $(patsubst %.c, $(OBJDIR)/%.o, $(SRC)) $(OBJDIR)/sysfont.o
|
|
|
|
OBJS = $(patsubst %.S, $(OBJDIR)/%.o, $(OBJS2))
|
2004-09-22 08:58:50 +00:00
|
|
|
DIRS:=. drivers common
|
2005-05-07 22:41:17 +00:00
|
|
|
OUTPUT = $(BUILDDIR)/librockbox.a
|
2004-09-22 08:58:50 +00:00
|
|
|
DEPFILE = $(OBJDIR)/dep-firmware
|
2002-10-02 16:47:38 +00:00
|
|
|
|
2005-05-07 22:41:17 +00:00
|
|
|
all: $(OUTPUT) $(EXTRA_TARGETS)
|
2003-07-10 11:52:42 +00:00
|
|
|
|
2007-01-18 00:46:52 +00:00
|
|
|
$(DEPFILE): $(BUILDDIR)/sysfont.h
|
|
|
|
|
2004-09-22 08:58:50 +00:00
|
|
|
dep: $(DEPFILE)
|
|
|
|
|
|
|
|
$(OUTPUT): $(OBJS) $(DEPFILE)
|
2006-10-27 21:48:06 +00:00
|
|
|
$(call PRINTS,AR+RANLIB $(@F))$(AR) ruv $@ $(OBJS) >/dev/null 2>&1
|
2006-02-09 04:27:57 +00:00
|
|
|
$(SILENT)$(RANLIB) $@
|
2002-05-23 12:00:50 +00:00
|
|
|
|
2004-09-22 08:58:50 +00:00
|
|
|
include $(TOOLSDIR)/make.inc
|
2002-08-15 09:30:41 +00:00
|
|
|
|
2002-03-28 15:09:10 +00:00
|
|
|
clean:
|
2006-10-27 21:48:06 +00:00
|
|
|
$(call PRINTS,cleaning firmware)rm -f $(OBJS) $(OUTPUT) $(OBJDIR)/sysfont.c $(DEPFILE)
|
2006-02-09 04:27:57 +00:00
|
|
|
$(SILENT)rm -rf $(OBJDIR)/drivers $(OBJDIR)/common
|
2002-04-28 09:53:39 +00:00
|
|
|
|
2002-05-17 09:28:07 +00:00
|
|
|
# Special targets
|
2003-02-07 09:41:57 +00:00
|
|
|
$(OBJDIR)/thread.o: thread.c export/thread.h
|
2006-10-27 21:48:06 +00:00
|
|
|
$(call PRINTS,CC thread.c)$(CC) -c -O -fomit-frame-pointer $(CFLAGS) $< -o $@
|
2002-05-17 09:28:07 +00:00
|
|
|
|
2007-01-18 00:46:52 +00:00
|
|
|
$(BUILDDIR)/sysfont.h: ../fonts/rockbox_default.bdf
|
|
|
|
$(call PRINTS,Create sysfont.h)$(TOOLSDIR)/convbdf -h -o $@ $<
|
Make the build system create a sysfont.h which includes font information for the system font. Available #defines are: SYSFONT_NAME, SYSFONT_FACENAME, SYSFONT_WIDTH, SYSFONT_HEIGHT, SYSFONT_SIZE, SYSFONT_ASCENT, SYSFONT_DESCENT, SYSFONT_FIRST_CHAR, SYSFONT_LAST_CHAR, SYSFONT_DEFAULT_CHAR, SYSFONT_PROPORTIONAL, SYSFONT_COPYRIGHT, SYSFONT_BITS_SIZE.
Also fix a small bug in the iPod bootloader printf() code and use printf() for PortalPlayer bootloaders too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12041 a1c6a512-1295-4272-9138-f99709370657
2007-01-17 12:20:38 +00:00
|
|
|
|
2005-06-30 10:52:51 +00:00
|
|
|
$(OBJDIR)/sysfont.o: ../fonts/rockbox_default.bdf
|
2006-10-27 21:48:06 +00:00
|
|
|
$(call PRINTS,CONVBDF)$(TOOLSDIR)/convbdf -c -o $(OBJDIR)/sysfont.c $<
|
|
|
|
$(call PRINTS,CC sysfont.c)$(CC) $(CFLAGS) -c $(OBJDIR)/sysfont.c -o $@
|
2002-09-20 08:07:51 +00:00
|
|
|
|
2004-09-22 08:58:50 +00:00
|
|
|
-include $(DEPFILE)
|