diff options
author | Dave Chapman <dave@dchapman.com> | 2006-04-01 13:32:16 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2006-04-01 13:32:16 +0000 |
commit | 3d253c6ccfa735a4831b1f825a4ed870d7ac8ccb (patch) | |
tree | f0a2f2554da51f16583baf15b4ddec18e6dee4c2 /apps | |
parent | 8c15138008b108a0ab3d90ef9f09c6d3fc59f740 (diff) | |
download | rockbox-3d253c6ccfa735a4831b1f825a4ed870d7ac8ccb.tar.gz rockbox-3d253c6ccfa735a4831b1f825a4ed870d7ac8ccb.zip |
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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/Makefile | 36 | ||||
-rw-r--r-- | apps/plugins/SUBDIRS | 32 |
2 files changed, 35 insertions, 33 deletions
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 | |||
48 | # This sets up 'SRC' based on the files mentioned in SOURCES | 48 | # This sets up 'SRC' based on the files mentioned in SOURCES |
49 | include $(TOOLSDIR)/makesrc.inc | 49 | include $(TOOLSDIR)/makesrc.inc |
50 | 50 | ||
51 | # This sets up 'SUBDIRS' based on the directories mentioned in SUBDIRS | ||
52 | include $(TOOLSDIR)/makesubdirs.inc | ||
53 | |||
51 | ROCKS := $(SRC:%.c=$(OBJDIR)/%.rock) | 54 | ROCKS := $(SRC:%.c=$(OBJDIR)/%.rock) |
52 | SOURCES = $(SRC) | 55 | SOURCES = $(SRC) |
53 | ELFS := $(SRC:%.c=$(OBJDIR)/%.elf) | 56 | ELFS := $(SRC:%.c=$(OBJDIR)/%.elf) |
@@ -56,39 +59,6 @@ OBJS := $(SRC:%.c=$(OBJDIR)/%.o) | |||
56 | DEFS := $(SRC:%.c=$(OBJDIR)/%.def) | 59 | DEFS := $(SRC:%.c=$(OBJDIR)/%.def) |
57 | DIRS = . | 60 | DIRS = . |
58 | 61 | ||
59 | ####################################### | ||
60 | # Subdirs containing multi-file plugins | ||
61 | |||
62 | #for all targets | ||
63 | # SUBDIRS += searchengine databox | ||
64 | SUBDIRS += databox | ||
65 | |||
66 | #for any recorder, iRiver or iPod model | ||
67 | ifneq (,$(strip $(foreach tgt,RECORDER IRIVER IPOD_COLOR IPOD_VIDEO GIGABEAT,$(findstring $(tgt),$(TARGET))))) | ||
68 | ifneq (-DIRIVER_IFP7XX,$(TARGET)) | ||
69 | SUBDIRS += rockboy | ||
70 | endif | ||
71 | endif | ||
72 | |||
73 | # chessbox is too big to fit in the 32KB Archos plugin buffer, so we only | ||
74 | # build for IRIVER and IPOD targets | ||
75 | ifneq (,$(strip $(foreach tgt,RECORDER ONDIO IRIVER IPOD IAUDIO GIGABEAT,$(findstring $(tgt),$(TARGET))))) | ||
76 | ifneq (-DIRIVER_IFP7XX,$(TARGET)) | ||
77 | SUBDIRS += chessbox | ||
78 | endif | ||
79 | endif | ||
80 | |||
81 | # For all the colour targets and iriver H1x0 | ||
82 | ifneq (,$(strip $(foreach tgt,IPOD_VIDEO IPOD_NANO IPOD_COLOR IRIVER \ | ||
83 | IAUDIO_X5 GIGABEAT,$(findstring $(tgt),$(TARGET))))) | ||
84 | SUBDIRS += pacbox | ||
85 | endif | ||
86 | |||
87 | # Build Doom for the H300 and color ipods | ||
88 | ifneq (,$(strip $(foreach tgt, IRIVER_H300 IPOD_NANO IPOD_COLOR IPOD_VIDEO IAUDIO_X5,$(findstring $(tgt),$(TARGET))))) | ||
89 | SUBDIRS += doom | ||
90 | endif | ||
91 | |||
92 | .PHONY: $(SUBDIRS) | 62 | .PHONY: $(SUBDIRS) |
93 | all: $(BUILDDIR)/libplugin.a $(ROCKS) $(SUBDIRS) $(DEPFILE) | 63 | all: $(BUILDDIR)/libplugin.a $(ROCKS) $(SUBDIRS) $(DEPFILE) |
94 | 64 | ||
diff --git a/apps/plugins/SUBDIRS b/apps/plugins/SUBDIRS new file mode 100644 index 0000000000..01d9540531 --- /dev/null +++ b/apps/plugins/SUBDIRS | |||
@@ -0,0 +1,32 @@ | |||
1 | #ifndef IRIVER_IFP7XX_SERIES | ||
2 | |||
3 | /* For all targets */ | ||
4 | databox | ||
5 | |||
6 | /* For various targets... */ | ||
7 | #if (CONFIG_KEYPAD == RECORDER_PAD) || \ | ||
8 | (CONFIG_KEYPAD == IRIVER_H100_PAD) || \ | ||
9 | (CONFIG_KEYPAD == IRIVER_H300_PAD) || \ | ||
10 | defined(IPOD_COLOR) || \ | ||
11 | defined(IPOD_VIDEO) || \ | ||
12 | defined(TOSHIBA_GIGABEAT_F) | ||
13 | rockboy | ||
14 | #endif | ||
15 | |||
16 | /* For all targets with a bitmap display */ | ||
17 | #ifdef HAVE_LCD_BITMAP | ||
18 | chessbox | ||
19 | #endif | ||
20 | |||
21 | /* For all the colour targets and iriver H1x0 */ | ||
22 | #if defined(HAVE_LCD_COLOR) || defined(IRIVER_H100_SERIES) | ||
23 | pacbox | ||
24 | #endif | ||
25 | |||
26 | /* For all the color targets apart from the Gigabeat */ | ||
27 | #if defined(HAVE_LCD_COLOR) && !defined(TOSHIBA_GIGABEAT_F) | ||
28 | doom | ||
29 | #endif | ||
30 | |||
31 | |||
32 | #endif /* IRIVER_IFP7XX_SERIES */ | ||