From 6e075ebc9e7ad907e79a42096d816a7a94cf5596 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Thu, 23 Feb 2006 10:02:48 +0000 Subject: Add chessbox to the build system (currently only for iRiver H1x0/H3x0 and iPods - it is too large for the Archos plugin buffer) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8798 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'apps/plugins/Makefile') diff --git a/apps/plugins/Makefile b/apps/plugins/Makefile index 404f1662e2..3da2d46895 100644 --- a/apps/plugins/Makefile +++ b/apps/plugins/Makefile @@ -69,6 +69,13 @@ ifneq (-DIRIVER_IFP7XX,$(TARGET)) endif endif +# chessbox is too big to fit in the 32KB Archos plugin buffer, so we only +# build for IRIVER and IPOD targets +ifneq (,$(strip $(foreach tgt,IRIVER IPOD,$(findstring $(tgt),$(TARGET))))) +ifneq (-DIRIVER_IFP7XX,$(TARGET)) + SUBDIRS += chessbox +endif +endif .PHONY: $(SUBDIRS) all: $(BUILDDIR)/libplugin.a $(ROCKS) $(SUBDIRS) $(DEPFILE) @@ -186,10 +193,11 @@ $(LINKFILE): $(LDS) @echo "build $@" $(SILENT)cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P - >$@ -$(SUBDIRS): +$(SUBDIRS): $(BITMAPLIBS) @echo "MAKE in $@" $(SILENT)mkdir -p $(OBJDIR)/$@ - $(SILENT)$(MAKE) -C $@ OUTDIR=$(OBJDIR) OBJDIR=$(OBJDIR)/$@ + $(SILENT)$(MAKE) -C $@ OUTDIR=$(OBJDIR) OBJDIR=$(OBJDIR)/$@ \ + LINKBITMAPS="$(LINKBITMAPS)" BITMAPLIBS="$(BITMAPLIBS)" clean: @echo "cleaning plugins" -- cgit v1.2.3