From 3d253c6ccfa735a4831b1f825a4ed870d7ac8ccb Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Sat, 1 Apr 2006 13:32:16 +0000 Subject: Add apps/plugins/SUBDIRS file for specifying when to build each of the multi-file plugins instead of specifying it directly in the Makefile git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9397 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/Makefile | 36 +++--------------------------------- 1 file changed, 3 insertions(+), 33 deletions(-) (limited to 'apps/plugins/Makefile') diff --git a/apps/plugins/Makefile b/apps/plugins/Makefile index 5e2ea7bbfd..2dd8ab2e8d 100644 --- a/apps/plugins/Makefile +++ b/apps/plugins/Makefile @@ -48,6 +48,9 @@ DEPFILE = $(OBJDIR)/dep-plugins # This sets up 'SRC' based on the files mentioned in SOURCES include $(TOOLSDIR)/makesrc.inc +# This sets up 'SUBDIRS' based on the directories mentioned in SUBDIRS +include $(TOOLSDIR)/makesubdirs.inc + ROCKS := $(SRC:%.c=$(OBJDIR)/%.rock) SOURCES = $(SRC) ELFS := $(SRC:%.c=$(OBJDIR)/%.elf) @@ -56,39 +59,6 @@ OBJS := $(SRC:%.c=$(OBJDIR)/%.o) DEFS := $(SRC:%.c=$(OBJDIR)/%.def) DIRS = . -####################################### -# Subdirs containing multi-file plugins - -#for all targets -# SUBDIRS += searchengine databox -SUBDIRS += databox - -#for any recorder, iRiver or iPod model -ifneq (,$(strip $(foreach tgt,RECORDER IRIVER IPOD_COLOR IPOD_VIDEO GIGABEAT,$(findstring $(tgt),$(TARGET))))) -ifneq (-DIRIVER_IFP7XX,$(TARGET)) - SUBDIRS += rockboy -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,RECORDER ONDIO IRIVER IPOD IAUDIO GIGABEAT,$(findstring $(tgt),$(TARGET))))) -ifneq (-DIRIVER_IFP7XX,$(TARGET)) - SUBDIRS += chessbox -endif -endif - -# For all the colour targets and iriver H1x0 -ifneq (,$(strip $(foreach tgt,IPOD_VIDEO IPOD_NANO IPOD_COLOR IRIVER \ - IAUDIO_X5 GIGABEAT,$(findstring $(tgt),$(TARGET))))) - SUBDIRS += pacbox -endif - -# Build Doom for the H300 and color ipods -ifneq (,$(strip $(foreach tgt, IRIVER_H300 IPOD_NANO IPOD_COLOR IPOD_VIDEO IAUDIO_X5,$(findstring $(tgt),$(TARGET))))) - SUBDIRS += doom -endif - .PHONY: $(SUBDIRS) all: $(BUILDDIR)/libplugin.a $(ROCKS) $(SUBDIRS) $(DEPFILE) -- cgit v1.2.3