summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/Makefile93
-rw-r--r--apps/gui/icon.c4
-rw-r--r--apps/plugins/Makefile56
-rw-r--r--apps/plugins/blackjack.c4
-rw-r--r--apps/plugins/brickmania.c16
-rw-r--r--apps/plugins/bubbles.c6
-rw-r--r--apps/plugins/flipit.c4
-rw-r--r--apps/plugins/jackpot.c4
-rw-r--r--apps/plugins/logo.c4
-rw-r--r--apps/plugins/pegbox.c8
-rw-r--r--apps/plugins/pictureflow.c4
-rw-r--r--apps/plugins/sliding_puzzle.c2
-rw-r--r--apps/plugins/snake2.c10
-rw-r--r--apps/plugins/sokoban.c2
-rw-r--r--apps/plugins/solitaire.c6
-rw-r--r--apps/plugins/star.c2
-rw-r--r--apps/recorder/icons.h4
-rw-r--r--apps/screens.c4
-rw-r--r--tools/make.inc2
19 files changed, 125 insertions, 110 deletions
diff --git a/apps/Makefile b/apps/Makefile
index cc5594a7dd..bceae45710 100644
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -7,8 +7,8 @@
7# $Id$ 7# $Id$
8# 8#
9 9
10INCLUDES= $(TARGET_INC) -I$(FIRMDIR)/include -I$(FIRMDIR)/export -I. -I$(BUILDDIR) \ 10INCLUDES= $(TARGET_INC) -I$(FIRMDIR)/include -I$(FIRMDIR)/export -I. \
11 -I$(BUILDDIR)/bitmaps -I$(OBJDIR) 11 -I$(BUILDDIR) -I$(BUILDDIR)/bitmaps -I$(OBJDIR)
12 12
13DEPFILE = $(OBJDIR)/dep-apps 13DEPFILE = $(OBJDIR)/dep-apps
14 14
@@ -25,7 +25,6 @@ CODECS=build-codecs
25 25
26# This sets up the parameters for building and linking libspeex for core voice 26# This sets up the parameters for building and linking libspeex for core voice
27VOICE=libspeex-rockbox 27VOICE=libspeex-rockbox
28VOICELIB=$(BUILDDIR)/libspeex-rockbox.a
29LINKVOICE= -lspeex-rockbox 28LINKVOICE= -lspeex-rockbox
30 29
31endif 30endif
@@ -34,19 +33,19 @@ endif
34BITMAPLIBS = 33BITMAPLIBS =
35LINKBITMAPS = 34LINKBITMAPS =
36ifneq ($(strip $(BMP2RB_MONO)),) 35ifneq ($(strip $(BMP2RB_MONO)),)
37 BITMAPLIBS += $(BUILDDIR)/libbitmapsmono.a 36 BITMAPLIBS += bitmapsmono
38 LINKBITMAPS += -lbitmapsmono 37 LINKBITMAPS += -lbitmapsmono
39endif 38endif
40ifneq ($(strip $(BMP2RB_NATIVE)),) 39ifneq ($(strip $(BMP2RB_NATIVE)),)
41 BITMAPLIBS += $(BUILDDIR)/libbitmapsnative.a 40 BITMAPLIBS += bitmapsnative
42 LINKBITMAPS += -lbitmapsnative 41 LINKBITMAPS += -lbitmapsnative
43endif 42endif
44ifneq ($(strip $(BMP2RB_REMOTEMONO)),) 43ifneq ($(strip $(BMP2RB_REMOTEMONO)),)
45 BITMAPLIBS += $(BUILDDIR)/libbitmapsremotemono.a 44 BITMAPLIBS += bitmapsremotemono
46 LINKBITMAPS += -lbitmapsremotemono 45 LINKBITMAPS += -lbitmapsremotemono
47endif 46endif
48ifneq ($(strip $(BMP2RB_REMOTENATIVE)),) 47ifneq ($(strip $(BMP2RB_REMOTENATIVE)),)
49 BITMAPLIBS += $(BUILDDIR)/libbitmapsremotenative.a 48 BITMAPLIBS += bitmapsremotenative
50 LINKBITMAPS += -lbitmapsremotenative 49 LINKBITMAPS += -lbitmapsremotenative
51endif 50endif
52 51
@@ -62,7 +61,8 @@ ifdef APPEXTRA
62 INCLUDES += $(patsubst %,-I%,$(subst :, ,$(APPEXTRA))) 61 INCLUDES += $(patsubst %,-I%,$(subst :, ,$(APPEXTRA)))
63endif 62endif
64 63
65CFLAGS = $(INCLUDES) $(GCCOPTS) $(TARGET) $(BUILDDATE) $(DEFINES) -DTARGET_ID=$(TARGET_ID) \ 64CFLAGS = $(INCLUDES) $(GCCOPTS) $(TARGET) $(BUILDDATE) $(DEFINES) \
65 -DTARGET_ID=$(TARGET_ID) \
66 -DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} \ 66 -DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} \
67 -DTARGET_NAME=\"$(MODELNAME)\" 67 -DTARGET_NAME=\"$(MODELNAME)\"
68 68
@@ -79,7 +79,7 @@ LIBROCKBOX = $(BUILDDIR)/librockbox.a
79ifdef SIMVER 79ifdef SIMVER
80# this is a sim build 80# this is a sim build
81 81
82all: $(BUILDDIR)/$(BINARY) $(CODECS) $(ROCKS) 82all: simbuild
83 83
84else 84else
85# regular target build 85# regular target build
@@ -91,39 +91,44 @@ else
91REALBIN = $(BUILDDIR)/$(BINARY) 91REALBIN = $(BUILDDIR)/$(BINARY)
92endif 92endif
93 93
94all: $(REALBIN) $(FLASHFILE) $(CODECS) $(ROCKS) $(ARCHOSROM) 94all: build
95
95endif 96endif
96 97
97dep: $(DEPFILE) 98build: $(DEPFILE) $(BITMAPLIBS) build-codecs build-pluginlib
99 $(call PRINTS,MAKE in plugins)$(MAKE) -C plugins OBJDIR=$(OBJDIR)/plugins
100 $(call PRINTS,MAKE in apps)$(MAKE) $(REALBIN) $(FLASHFILE) $(ARCHOSROM)
98 101
99features: $(OBJDIR)/features 102simbuild: $(DEPFILE) $(BITMAPLIBS) build-codecs build-pluginlib
100 103 $(call PRINTS,MAKE in plugins)$(MAKE) -C plugins OBJDIR=$(OBJDIR)/plugins
101libspeex-rockbox: 104 $(call PRINTS,MAKE in apps)$(MAKE) $(BUILDDIR)/$(BINARY)
102 $(SILENT)mkdir -p $(OBJDIR)/libspeex-rockbox
103 $(call PRINTS,MAKE in libspeex for rockbox core)$(MAKE) -C $(APPSDIR)/codecs/libspeex ROCKBOX_VOICE_CODEC=1 OBJDIR=$(OBJDIR)/libspeex-rockbox OUTPUT=$(BUILDDIR)/libspeex-rockbox.a
104 105
105build-codecs: 106build-codecs:
106 $(SILENT)$(MAKE) -C codecs/lib OBJDIR=$(OBJDIR)/codecs/lib 107 $(SILENT)$(MAKE) -C codecs/lib OBJDIR=$(OBJDIR)/codecs/lib
107 $(SILENT)$(MAKE) -C codecs OBJDIR=$(OBJDIR)/codecs 108 $(SILENT)$(MAKE) -C codecs OBJDIR=$(OBJDIR)/codecs
108 109
109recorder/icons.h: $(BITMAPLIBS) 110build-pluginlib:
111 $(SILENT)$(MAKE) -C plugins/lib OBJDIR=$(OBJDIR)/plugins/lib
110 112
111$(BUILDDIR)/libbitmapsmono.a: 113bitmapsmono:
112 $(call PRINTS,MAKE in bitmaps/mono)$(MAKE) -C bitmaps/mono OBJDIR=$(OBJDIR)/bitmaps/mono 114 $(call PRINTS,MAKE in bitmaps/mono)$(MAKE) -C bitmaps/mono OBJDIR=$(OBJDIR)/bitmaps/mono
113 115
114$(BUILDDIR)/libbitmapsnative.a: 116bitmapsnative:
115 $(call PRINTS,MAKE in bitmaps/native)$(MAKE) -C bitmaps/native OBJDIR=$(OBJDIR)/bitmaps/native 117 $(call PRINTS,MAKE in bitmaps/native)$(MAKE) -C bitmaps/native OBJDIR=$(OBJDIR)/bitmaps/native
116 118
117$(BUILDDIR)/libbitmapsremotemono.a: 119bitmapsremotemono:
118 $(call PRINTS,MAKE in bitmaps/remote_mono)$(MAKE) -C bitmaps/remote_mono OBJDIR=$(OBJDIR)/bitmaps/remote_mono 120 $(call PRINTS,MAKE in bitmaps/remote_mono)$(MAKE) -C bitmaps/remote_mono OBJDIR=$(OBJDIR)/bitmaps/remote_mono
119 121
120$(BUILDDIR)/libbitmapsremotenative.a: 122bitmapsremotenative:
121 $(call PRINTS,MAKE in bitmaps/remote_native)$(MAKE) -C bitmaps/remote_native OBJDIR=$(OBJDIR)/bitmaps/remote_native 123 $(call PRINTS,MAKE in bitmaps/remote_native)$(MAKE) -C bitmaps/remote_native OBJDIR=$(OBJDIR)/bitmaps/remote_native
122 124
123rocks: build-codecs 125rocks: build-codecs build-pluginlib
124 $(SILENT)$(MAKE) -C plugins/lib OBJDIR=$(OBJDIR)/plugins/lib
125 $(SILENT)$(MAKE) -C plugins OBJDIR=$(OBJDIR)/plugins 126 $(SILENT)$(MAKE) -C plugins OBJDIR=$(OBJDIR)/plugins
126 127
128libspeex-rockbox:
129 $(SILENT)mkdir -p $(OBJDIR)/libspeex-rockbox
130 $(call PRINTS,MAKE in libspeex for rockbox core)$(MAKE) -C $(APPSDIR)/codecs/libspeex ROCKBOX_VOICE_CODEC=1 OBJDIR=$(OBJDIR)/libspeex-rockbox OUTPUT=$(BUILDDIR)/libspeex-rockbox.a
131
127$(LINKFILE): $(LDS) 132$(LINKFILE): $(LDS)
128 $(call PRINTS,Build $(@F))cat $< | $(CC) -DLOADADDRESS=$(LOADADDRESS) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - >$@ 133 $(call PRINTS,Build $(@F))cat $< | $(CC) -DLOADADDRESS=$(LOADADDRESS) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - >$@
129 134
@@ -136,12 +141,12 @@ $(MAXOUTFILE):
136 $(SILENT)cat $(MAXINFILE) | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - > $(MAXOUTFILE) 141 $(SILENT)cat $(MAXINFILE) | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - > $(MAXOUTFILE)
137 $(SILENT)rm $(MAXINFILE) 142 $(SILENT)rm $(MAXINFILE)
138 143
139$(OBJDIR)/rombox.elf : $(BITMAPLIBS) $(OBJS) $(LINKROM) $(DEPFILE) $(LIBROCKBOX) $(VOICE) 144$(OBJDIR)/rombox.elf : $(OBJS) $(LINKROM) $(LIBROCKBOX) $(VOICE)
140 $(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lrockbox -lgcc $(LINKVOICE) $(LINKBITMAPS) -L$(BUILDDIR)/firmware -T$(LINKROM) -Wl,-Map,$(OBJDIR)/rombox.map 145 $(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lrockbox -lgcc $(LINKVOICE) $(LINKBITMAPS) -L$(BUILDDIR)/firmware -T$(LINKROM) -Wl,-Map,$(OBJDIR)/rombox.map
141 146
142ifndef SIMVER 147ifndef SIMVER
143 148
144$(OBJDIR)/rockbox.elf : $(BITMAPLIBS) $(OBJS) $(LINKFILE) $(DEPFILE) $(LIBROCKBOX) $(VOICE) 149$(OBJDIR)/rockbox.elf : $(OBJS) $(LINKFILE) $(LIBROCKBOX) $(VOICE)
145 $(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJS) -L$(BUILDDIR)/firmware -L$(BUILDDIR) -lrockbox $(LINKVOICE) $(LINKBITMAPS) -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/rockbox.map 150 $(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJS) -L$(BUILDDIR)/firmware -L$(BUILDDIR) -lrockbox $(LINKVOICE) $(LINKBITMAPS) -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/rockbox.map
146 151
147$(OBJDIR)/rockbox.bin : $(OBJDIR)/rockbox.elf 152$(OBJDIR)/rockbox.bin : $(OBJDIR)/rockbox.elf
@@ -186,7 +191,7 @@ else
186#SIMULATOR_MAP=-Wl,-Map,$(OBJDIR)/rockbox.map 191#SIMULATOR_MAP=-Wl,-Map,$(OBJDIR)/rockbox.map
187endif 192endif
188 193
189$(BUILDDIR)/$(BINARY) : $(BITMAPLIBS) $(OBJS) $(DEPFILE) $(BUILDDIR)/libsim.a \ 194$(BUILDDIR)/$(BINARY) : $(OBJS) $(BUILDDIR)/libsim.a \
190 $(BUILDDIR)/libcomsim.a $(LIBROCKBOX) $(VOICE) 195 $(BUILDDIR)/libcomsim.a $(LIBROCKBOX) $(VOICE)
191 $(call PRINTS,LD $(BINARY))$(CC) $(GCCOPTS) -o $@ $(OBJS) -L$(BUILDDIR) -lrockbox -lsim -lcomsim $(LINKVOICE) $(LINKBITMAPS) $(LDOPTS) $(EXTRAOBJ) $(SIMULATOR_MAP) 196 $(call PRINTS,LD $(BINARY))$(CC) $(GCCOPTS) -o $@ $(OBJS) -L$(BUILDDIR) -lrockbox -lsim -lcomsim $(LINKVOICE) $(LINKBITMAPS) $(LDOPTS) $(EXTRAOBJ) $(SIMULATOR_MAP)
192endif 197endif
@@ -196,15 +201,16 @@ $(BUILDDIR)/rockbox.ucl: $(OBJDIR)/rockbox.bin
196 201
197$(BUILDDIR)/rombox.ucl: $(OBJDIR)/rombox.bin $(MAXOUTFILE) 202$(BUILDDIR)/rombox.ucl: $(OBJDIR)/rombox.bin $(MAXOUTFILE)
198 $(call PRINTS,UCLPACK rombox)$(TOOLSDIR)/uclpack --none $< $@ >/dev/null 2>&1; \ 203 $(call PRINTS,UCLPACK rombox)$(TOOLSDIR)/uclpack --none $< $@ >/dev/null 2>&1; \
199 perl $(TOOLSDIR)/romsizetest.pl `cat $(MAXOUTFILE)` $<; \ 204 perl $(TOOLSDIR)/romsizetest.pl `cat $(MAXOUTFILE)` $<; \
200 if test $$? -ne 0; then \ 205 if test $$? -ne 0; then \
201 echo "removing UCL file again, making it a fake one"; \ 206 echo "removing UCL file again, making it a fake one"; \
202 echo "fake" > $@; \ 207 echo "fake" > $@; \
203 fi 208 fi
204 209
205$(BUILDDIR)/rombox.iriver: $(OBJDIR)/rombox.bin 210$(BUILDDIR)/rombox.iriver: $(OBJDIR)/rombox.bin
206 $(call PRINTS,Build ROM file)$(MKFIRMWARE) $< $@ 211 $(call PRINTS,Build ROM file)$(MKFIRMWARE) $< $@
207 212
213# make.inc contains the $(DEPFILE) generation
208include $(TOOLSDIR)/make.inc 214include $(TOOLSDIR)/make.inc
209 215
210# apps/features.txt is a file that (is preprocessed and) lists named features 216# apps/features.txt is a file that (is preprocessed and) lists named features
@@ -213,26 +219,28 @@ include $(TOOLSDIR)/make.inc
213# button.h is included for the HAS_BUTTON_HOLD define. 219# button.h is included for the HAS_BUTTON_HOLD define.
214# 220#
215 221
222features: $(OBJDIR)/features
223
216$(OBJDIR)/features: features.txt 224$(OBJDIR)/features: features.txt
217 $(SILENT)mkdir -p `dirname $@` 225 $(SILENT)mkdir -p $(OBJDIR)
218 $(SILENT)cat $< | $(HOSTCC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \ 226 $(SILENT)cat $< | $(HOSTCC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \
219 $(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -imacros "config.h" -imacros "button.h" - | \ 227 $(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -imacros "config.h" -imacros "button.h" - | \
220 grep -v "^\#" | grep -v "^$$" > $@; \ 228 grep -v "^\#" | grep -v "^$$" > $@; \
221 for f in `cat $(OBJDIR)/features`; do feat="$$feat:$$f" ; done ; \ 229 for f in `cat $(OBJDIR)/features`; do feat="$$feat:$$f" ; done ; \
222 echo "$$feat" >$(OBJDIR)/genlang-features 230 echo "$$feat" >$(OBJDIR)/genlang-features
223 231
224$(OBJDIR)/lang.o: lang/$(LANGUAGE).lang $(OBJDIR)/features 232$(OBJDIR)/lang.o: lang/$(LANGUAGE).lang $(OBJDIR)/features
225 $(SILENT)for f in `cat $(OBJDIR)/features`; do feat="$$feat:$$f" ; done; \ 233 $(SILENT)for f in `cat $(OBJDIR)/features`; do feat="$$feat:$$f" ; done; \
226 perl -s $(TOOLSDIR)/genlang -p=$(BUILDDIR)/lang -t=$(MODELNAME)$$feat $< 234 perl -s $(TOOLSDIR)/genlang -p=$(BUILDDIR)/lang -t=$(MODELNAME)$$feat $<
227 $(call PRINTS,CC lang.c)$(CC) $(CFLAGS) -c $(BUILDDIR)/lang.c -o $@ 235 $(call PRINTS,CC lang.c)$(CC) $(CFLAGS) -c $(BUILDDIR)/lang.c -o $@
228 236
229clean: 237clean:
230 $(call PRINTS,cleaning apps)-rm -f $(OBJS) $(BUILDDIR)/$(BINARY) $(OBJDIR)/rockbox.asm \ 238 $(call PRINTS,cleaning apps)-rm -f $(OBJS) $(BUILDDIR)/$(BINARY) $(OBJDIR)/rockbox.asm \
231 $(OBJDIR)/rockbox.bin $(OBJDIR)/rockbox.elf $(OBJDIR)/*.map \ 239 $(OBJDIR)/rockbox.bin $(OBJDIR)/rockbox.elf $(OBJDIR)/*.map \
232 $(OBJDIR)/lang.o $(OBJDIR)/build.lang $(BUILDDIR)/lang.[ch] \ 240 $(OBJDIR)/lang.o $(OBJDIR)/build.lang $(BUILDDIR)/lang.[ch] \
233 $(LINKFILE) $(BUILDDIR)/rockbox.ucl $(LINKROM) \ 241 $(LINKFILE) $(BUILDDIR)/rockbox.ucl $(LINKROM) \
234 $(BUILDDIR)/rombox.ucl $(OBJDIR)/rombox.bin $(OBJDIR)/rombox.elf \ 242 $(BUILDDIR)/rombox.ucl $(OBJDIR)/rombox.bin $(OBJDIR)/rombox.elf \
235 $(MAXOUTFILE) $(DEPFILE) 243 $(MAXOUTFILE) $(DEPFILE)
236 $(SILENT)$(MAKE) -C bitmaps/mono clean OBJDIR=$(OBJDIR)/bitmaps/mono 244 $(SILENT)$(MAKE) -C bitmaps/mono clean OBJDIR=$(OBJDIR)/bitmaps/mono
237 $(SILENT)$(MAKE) -C bitmaps/native clean OBJDIR=$(OBJDIR)/bitmaps/native 245 $(SILENT)$(MAKE) -C bitmaps/native clean OBJDIR=$(OBJDIR)/bitmaps/native
238 $(SILENT)$(MAKE) -C bitmaps/remote_mono clean OBJDIR=$(OBJDIR)/bitmaps/remote_mono 246 $(SILENT)$(MAKE) -C bitmaps/remote_mono clean OBJDIR=$(OBJDIR)/bitmaps/remote_mono
@@ -241,6 +249,7 @@ clean:
241 $(SILENT)$(MAKE) -C codecs clean OBJDIR=$(OBJDIR)/codecs 249 $(SILENT)$(MAKE) -C codecs clean OBJDIR=$(OBJDIR)/codecs
242 $(SILENT)rm -rf $(OBJDIR)/recorder $(OBJDIR)/player 250 $(SILENT)rm -rf $(OBJDIR)/recorder $(OBJDIR)/player
243 $(SILENT)rm -rf $(BUILDDIR)/bitmaps 251 $(SILENT)rm -rf $(BUILDDIR)/bitmaps
252 $(SILENT)rm -rf $(BUILDDIR)/pluginbitmaps
244ifdef SIMVER 253ifdef SIMVER
245 $(SILENT)$(MAKE) -C $(SIMDIR) clean 254 $(SILENT)$(MAKE) -C $(SIMDIR) clean
246endif 255endif
diff --git a/apps/gui/icon.c b/apps/gui/icon.c
index e247644ade..e11c21cbea 100644
--- a/apps/gui/icon.c
+++ b/apps/gui/icon.c
@@ -30,9 +30,9 @@
30#include "bmp.h" 30#include "bmp.h"
31#include "filetypes.h" 31#include "filetypes.h"
32 32
33#include <default_icons.h> 33#include "bitmaps/default_icons.h"
34#if defined(HAVE_REMOTE_LCD) && (NB_SCREENS > 1) 34#if defined(HAVE_REMOTE_LCD) && (NB_SCREENS > 1)
35#include <remote_default_icons.h> 35#include "bitmaps/remote_default_icons.h"
36#endif 36#endif
37 37
38/* These are just the file names, the full path is snprint'ed when used */ 38/* These are just the file names, the full path is snprint'ed when used */
diff --git a/apps/plugins/Makefile b/apps/plugins/Makefile
index 4f518a2c1c..c9405a49b9 100644
--- a/apps/plugins/Makefile
+++ b/apps/plugins/Makefile
@@ -8,8 +8,8 @@
8# 8#
9 9
10INCLUDES = $(TARGET_INC) -I$(FIRMDIR)/include -I$(FIRMDIR)/export -I$(FIRMDIR)/common \ 10INCLUDES = $(TARGET_INC) -I$(FIRMDIR)/include -I$(FIRMDIR)/export -I$(FIRMDIR)/common \
11 -I$(FIRMDIR)/drivers -I$(APPSDIR) -Ilib -I$(BUILDDIR) \ 11 -I$(FIRMDIR)/drivers -I$(APPSDIR) -Ilib -I$(BUILDDIR)
12 -I$(BUILDDIR)/pluginbitmaps 12
13CFLAGS = $(INCLUDES) $(GCCOPTS) $(TARGET) $(EXTRA_DEFINES) \ 13CFLAGS = $(INCLUDES) $(GCCOPTS) $(TARGET) $(EXTRA_DEFINES) \
14 -DTARGET_ID=$(TARGET_ID) -DMEM=${MEMORYSIZE} -DPLUGIN 14 -DTARGET_ID=$(TARGET_ID) -DMEM=${MEMORYSIZE} -DPLUGIN
15 15
@@ -25,19 +25,19 @@ endif
25BITMAPLIBS = 25BITMAPLIBS =
26LINKBITMAPS = 26LINKBITMAPS =
27ifneq ($(strip $(BMP2RB_MONO)),) 27ifneq ($(strip $(BMP2RB_MONO)),)
28 BITMAPLIBS += $(BUILDDIR)/libpluginbitmapsmono.a 28 BITMAPLIBS += pluginbitmapsmono
29 LINKBITMAPS += -lpluginbitmapsmono 29 LINKBITMAPS += -lpluginbitmapsmono
30endif 30endif
31ifneq ($(strip $(BMP2RB_NATIVE)),) 31ifneq ($(strip $(BMP2RB_NATIVE)),)
32 BITMAPLIBS += $(BUILDDIR)/libpluginbitmapsnative.a 32 BITMAPLIBS += pluginbitmapsnative
33 LINKBITMAPS += -lpluginbitmapsnative 33 LINKBITMAPS += -lpluginbitmapsnative
34endif 34endif
35ifneq ($(strip $(BMP2RB_REMOTEMONO)),) 35ifneq ($(strip $(BMP2RB_REMOTEMONO)),)
36 BITMAPLIBS += $(BUILDDIR)/libpluginbitmapsremotemono.a 36 BITMAPLIBS += pluginbitmapsremotemono
37 LINKBITMAPS += -lpluginbitmapsremotemono 37 LINKBITMAPS += -lpluginbitmapsremotemono
38endif 38endif
39ifneq ($(strip $(BMP2RB_REMOTENATIVE)),) 39ifneq ($(strip $(BMP2RB_REMOTENATIVE)),)
40 BITMAPLIBS += $(BUILDDIR)/libpluginbitmapsremotenative.a 40 BITMAPLIBS += pluginbitmapsremotenative
41 LINKBITMAPS += -lpluginbitmapsremotenative 41 LINKBITMAPS += -lpluginbitmapsremotenative
42endif 42endif
43 43
@@ -60,12 +60,18 @@ DEFS := $(SRC:%.c=$(OBJDIR)/%.def)
60DIRS = . 60DIRS = .
61 61
62.PHONY: $(SUBDIRS) 62.PHONY: $(SUBDIRS)
63all: $(BUILDDIR)/libplugin.a $(ROCKS) $(SUBDIRS) $(DEPFILE) 63all: build
64
65$(DEPFILE): $(BITMAPLIBS)
66 64
67dep: $(DEPFILE) 65dep: $(DEPFILE)
68 66
67build: $(DEPFILE) $(BITMAPLIBS)
68 $(call PRINTS,MAKE rocks)$(MAKE) rocks
69 $(call PRINTS,MAKE subdirs)$(MAKE) subdirs
70
71rocks: $(ROCKS)
72
73subdirs: $(SUBDIRS)
74
69$(BUILDDIR)/credits.raw: $(DOCSDIR)/CREDITS 75$(BUILDDIR)/credits.raw: $(DOCSDIR)/CREDITS
70 $(call PRINTS,create credits.raw)perl credits.pl < $< > $@ 76 $(call PRINTS,create credits.raw)perl credits.pl < $< > $@
71 77
@@ -73,34 +79,32 @@ $(OBJDIR)/credits.o: credits.c $(BUILDDIR)/credits.raw
73 $(SILENT)mkdir -p $(dir $@) 79 $(SILENT)mkdir -p $(dir $@)
74 $(call PRINTS,CC $(<F))$(CC) $(CFLAGS) -I$(OBJDIR) -c $< -o $@ 80 $(call PRINTS,CC $(<F))$(CC) $(CFLAGS) -I$(OBJDIR) -c $< -o $@
75 81
76build-bitmapsmono: 82pluginbitmapsmono:
77 $(call PRINTS,MAKE in plugins/bitmaps/mono)$(MAKE) -C bitmaps/mono OBJDIR=$(OBJDIR)/bitmaps/mono 83 $(call PRINTS,MAKE in plugins/bitmaps/mono)$(MAKE) -C bitmaps/mono OBJDIR=$(OBJDIR)/bitmaps/mono
78 84
79build-bitmapsnative: 85pluginbitmapsnative:
80 $(call PRINTS,MAKE in plugins/bitmaps/native)$(MAKE) -C bitmaps/native OBJDIR=$(OBJDIR)/bitmaps/native 86 $(call PRINTS,MAKE in plugins/bitmaps/native)$(MAKE) -C bitmaps/native OBJDIR=$(OBJDIR)/bitmaps/native
81 87
82build-bitmapsremotemono: 88pluginbitmapsremotemono:
83 $(call PRINTS,MAKE in plugins/bitmaps/remote_mono)$(MAKE) -C bitmaps/remote_mono OBJDIR=$(OBJDIR)/bitmaps/remote_mono 89 $(call PRINTS,MAKE in plugins/bitmaps/remote_mono)$(MAKE) -C bitmaps/remote_mono OBJDIR=$(OBJDIR)/bitmaps/remote_mono
84 90
85build-bitmapsremotenative: 91pluginbitmapsremotenative:
86 $(call PRINTS,MAKE in plugins/bitmaps/remote_native)$(MAKE) -C bitmaps/remote_native OBJDIR=$(OBJDIR)/bitmaps/remote_native 92 $(call PRINTS,MAKE in plugins/bitmaps/remote_native)$(MAKE) -C bitmaps/remote_native OBJDIR=$(OBJDIR)/bitmaps/remote_native
87 93
88$(BITMAPLIBS): $(BUILDDIR)/libplugin%.a: build-%
89
90ifndef SIMVER 94ifndef SIMVER
91$(OBJDIR)/%.elf: $(OBJDIR)/%.o $(LINKFILE) $(BUILDDIR)/libplugin.a $(BITMAPLIBS) 95$(OBJDIR)/%.rock: $(OBJDIR)/%.o $(LINKFILE)
92 $(call PRINTS,LD $(@F))$(CC) $(CFLAGS) -o $@ $< -L$(BUILDDIR) $(CODECLIBS) -lplugin $(LINKBITMAPS) -lgcc \ 96 $(SILENT)$(CC) $(CFLAGS) -o $(OBJDIR)/$*.elf $< -L$(BUILDDIR) \
93 -T$(LINKFILE) -Wl,--gc-sections -Wl,-Map,$(OBJDIR)/$*.map 97 $(CODECLIBS) -lplugin $(LINKBITMAPS) -lgcc \
98 -T$(LINKFILE) -Wl,--gc-sections -Wl,-Map,$(OBJDIR)/$*.map
99 $(call PRINTS,LINK $(@F))$(OC) -O binary $(OBJDIR)/$*.elf $(OBJDIR)/$*.rock
94 100
95$(OBJDIR)/%.rock : $(OBJDIR)/%.elf
96 $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@
97else 101else
98 102
99ifeq ($(SIMVER), x11) 103ifeq ($(SIMVER), x11)
100################################################### 104###################################################
101# This is the X11 simulator version 105# This is the X11 simulator version
102 106
103$(OBJDIR)/%.rock : $(OBJDIR)/%.o $(BUILDDIR)/libplugin.a $(BITMAPLIBS) 107$(OBJDIR)/%.rock : $(OBJDIR)/%.o
104 $(call PRINTS,LD $(@F))$(CC) $(CFLAGS) $(SHARED_FLAG) $< -L$(BUILDDIR) $(CODECLIBS) -lplugin $(LINKBITMAPS) -o $@ 108 $(call PRINTS,LD $(@F))$(CC) $(CFLAGS) $(SHARED_FLAG) $< -L$(BUILDDIR) $(CODECLIBS) -lplugin $(LINKBITMAPS) -o $@
105ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) 109ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN)
106# 'x' must be kept or you'll have "Win32 error 5" 110# 'x' must be kept or you'll have "Win32 error 5"
@@ -115,7 +119,7 @@ ifeq ($(SIMVER), sdl)
115################################################### 119###################################################
116# This is the SDL simulator version 120# This is the SDL simulator version
117 121
118$(OBJDIR)/%.rock : $(OBJDIR)/%.o $(BUILDDIR)/libplugin.a $(BITMAPLIBS) 122$(OBJDIR)/%.rock : $(OBJDIR)/%.o
119 $(call PRINTS,LD $(@F))$(CC) $(CFLAGS) $(SHARED_FLAG) $< -L$(BUILDDIR) $(CODECLIBS) -lplugin $(LINKBITMAPS) -o $@ 123 $(call PRINTS,LD $(@F))$(CC) $(CFLAGS) $(SHARED_FLAG) $< -L$(BUILDDIR) $(CODECLIBS) -lplugin $(LINKBITMAPS) -o $@
120ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) 124ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN)
121# 'x' must be kept or you'll have "Win32 error 5" 125# 'x' must be kept or you'll have "Win32 error 5"
@@ -131,7 +135,7 @@ else # end of sdl-simulator
131DLLTOOLFLAGS = --export-all 135DLLTOOLFLAGS = --export-all
132DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin 136DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin
133 137
134$(OBJDIR)/%.rock : $(OBJDIR)/%.o $(BUILDDIR)/libplugin.a $(BITMAPLIBS) 138$(OBJDIR)/%.rock : $(OBJDIR)/%.o
135 $(call PRINTS,DLL $(@F))$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $< 139 $(call PRINTS,DLL $(@F))$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $<
136 $(SILENT)$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $< $(BUILDDIR)/libplugin.a $(BITMAPLIBS) \ 140 $(SILENT)$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $< $(BUILDDIR)/libplugin.a $(BITMAPLIBS) \
137 $(patsubst -l%,$(BUILDDIR)/lib%.a,$(CODECLIBS)) -o $@ 141 $(patsubst -l%,$(BUILDDIR)/lib%.a,$(CODECLIBS)) -o $@
@@ -149,17 +153,17 @@ endif # end of simulator section
149 153
150include $(TOOLSDIR)/make.inc 154include $(TOOLSDIR)/make.inc
151 155
152$(BUILDDIR)/libplugin.a: 156pluginlib:
153 $(SILENT)mkdir -p $(OBJDIR)/lib 157 $(SILENT)mkdir -p $(OBJDIR)/lib
154 $(call PRINTS,MAKE in plugin/lib)$(MAKE) -C lib OBJDIR=$(OBJDIR)/lib 158 $(call PRINTS,MAKE in plugin/lib)$(MAKE) -C lib OBJDIR=$(OBJDIR)/lib
155 159
156$(LINKFILE): $(LDS) 160$(LINKFILE): $(LDS)
157 $(call PRINTS,build $(@F))cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P - >$@ 161 $(call PRINTS,build $(@F))cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P - >$@
158 162
159$(SUBDIRS): $(BITMAPLIBS) 163$(SUBDIRS):
160 $(SILENT)mkdir -p $(OBJDIR)/$@ 164 $(SILENT)mkdir -p $(OBJDIR)/$@
161 $(call PRINTS,MAKE in $@)$(MAKE) -C $@ OUTDIR=$(OBJDIR) OBJDIR=$(OBJDIR)/$@ \ 165 $(call PRINTS,MAKE in $@)$(MAKE) -C $@ OUTDIR=$(OBJDIR) OBJDIR=$(OBJDIR)/$@ \
162 LINKBITMAPS="$(LINKBITMAPS)" BITMAPLIBS="$(BITMAPLIBS)" 166 LINKBITMAPS="$(LINKBITMAPS)"
163 167
164clean: 168clean:
165 $(call PRINTS,cleaning plugins)rm -f $(ROCKS) $(LINKFILE) $(OBJDIR)/*.rock $(DEPFILE) $(ELFS) \ 169 $(call PRINTS,cleaning plugins)rm -f $(ROCKS) $(LINKFILE) $(OBJDIR)/*.rock $(DEPFILE) $(ELFS) \
diff --git a/apps/plugins/blackjack.c b/apps/plugins/blackjack.c
index e6a9fbd8cd..d120d37646 100644
--- a/apps/plugins/blackjack.c
+++ b/apps/plugins/blackjack.c
@@ -20,8 +20,8 @@
20 ****************************************************************************/ 20 ****************************************************************************/
21 21
22#include "plugin.h" 22#include "plugin.h"
23#include "card_deck.h" 23#include "pluginbitmaps/card_deck.h"
24#include "card_back.h" 24#include "pluginbitmaps/card_back.h"
25 25
26PLUGIN_HEADER 26PLUGIN_HEADER
27 27
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c
index d6b1827b94..159e1ecfb4 100644
--- a/apps/plugins/brickmania.c
+++ b/apps/plugins/brickmania.c
@@ -211,12 +211,12 @@ enum menu_items {
211 BM_SEL_QUIT, 211 BM_SEL_QUIT,
212}; 212};
213 213
214#include "brickmania_pads.h" 214#include "pluginbitmaps/brickmania_pads.h"
215#include "brickmania_bricks.h" 215#include "pluginbitmaps/brickmania_bricks.h"
216#include "brickmania_powerups.h" 216#include "pluginbitmaps/brickmania_powerups.h"
217#include "brickmania_ball.h" 217#include "pluginbitmaps/brickmania_ball.h"
218#include "brickmania_menu_items.h" 218#include "pluginbitmaps/brickmania_menu_items.h"
219#include "brickmania_gameover.h" 219#include "pluginbitmaps/brickmania_gameover.h"
220 220
221#define PAD_WIDTH BMPWIDTH_brickmania_pads 221#define PAD_WIDTH BMPWIDTH_brickmania_pads
222#define PAD_HEIGHT (BMPHEIGHT_brickmania_pads/3) 222#define PAD_HEIGHT (BMPHEIGHT_brickmania_pads/3)
@@ -234,13 +234,13 @@ enum menu_items {
234#define GAMEOVER_HEIGHT BMPHEIGHT_brickmania_gameover 234#define GAMEOVER_HEIGHT BMPHEIGHT_brickmania_gameover
235 235
236#if LCD_DEPTH > 1 /* currently no background bmp for mono screens */ 236#if LCD_DEPTH > 1 /* currently no background bmp for mono screens */
237#include "brickmania_menu_bg.h" 237#include "pluginbitmaps/brickmania_menu_bg.h"
238#define MENU_BGHEIGHT BMPHEIGHT_brickmania_menu_bg 238#define MENU_BGHEIGHT BMPHEIGHT_brickmania_menu_bg
239#define MENU_BGWIDTH BMPWIDTH_brickmania_menu_bg 239#define MENU_BGWIDTH BMPWIDTH_brickmania_menu_bg
240#endif 240#endif
241 241
242#ifdef HAVE_LCD_COLOR /* currently no transparency for non-colour */ 242#ifdef HAVE_LCD_COLOR /* currently no transparency for non-colour */
243#include "brickmania_break.h" 243#include "pluginbitmaps/brickmania_break.h"
244#endif 244#endif
245 245
246#if (LCD_WIDTH == 320) && (LCD_HEIGHT == 240) 246#if (LCD_WIDTH == 320) && (LCD_HEIGHT == 240)
diff --git a/apps/plugins/bubbles.c b/apps/plugins/bubbles.c
index be94036f4e..17bfeca01d 100644
--- a/apps/plugins/bubbles.c
+++ b/apps/plugins/bubbles.c
@@ -99,10 +99,10 @@ PLUGIN_HEADER
99 99
100/* external bitmaps */ 100/* external bitmaps */
101#ifdef HAVE_LCD_COLOR 101#ifdef HAVE_LCD_COLOR
102#include "bubbles_background.h" 102#include "pluginbitmaps/bubbles_background.h"
103#endif 103#endif
104#include "bubbles_bubble.h" 104#include "pluginbitmaps/bubbles_bubble.h"
105#include "bubbles_emblem.h" 105#include "pluginbitmaps/bubbles_emblem.h"
106 106
107#define BUBBLE_WIDTH BMPWIDTH_bubbles_bubble 107#define BUBBLE_WIDTH BMPWIDTH_bubbles_bubble
108#define BUBBLE_HEIGHT BMPHEIGHT_bubbles_bubble 108#define BUBBLE_HEIGHT BMPHEIGHT_bubbles_bubble
diff --git a/apps/plugins/flipit.c b/apps/plugins/flipit.c
index 6eff1472df..76d1293527 100644
--- a/apps/plugins/flipit.c
+++ b/apps/plugins/flipit.c
@@ -253,8 +253,8 @@ static int cursor_pos, moves;
253 253
254#ifdef HAVE_LCD_BITMAP 254#ifdef HAVE_LCD_BITMAP
255 255
256#include "flipit_cursor.h" 256#include "pluginbitmaps/flipit_cursor.h"
257#include "flipit_tokens.h" 257#include "pluginbitmaps/flipit_tokens.h"
258 258
259#define PANEL_HEIGHT 12 259#define PANEL_HEIGHT 12
260#define TK_WIDTH BMPWIDTH_flipit_cursor 260#define TK_WIDTH BMPWIDTH_flipit_cursor
diff --git a/apps/plugins/jackpot.c b/apps/plugins/jackpot.c
index 38cd12e993..a4865b47fb 100644
--- a/apps/plugins/jackpot.c
+++ b/apps/plugins/jackpot.c
@@ -56,9 +56,9 @@ static unsigned long char_patterns[NB_SLOTS];
56#endif 56#endif
57 57
58/* FIXME: would be nice to have better graphics ... */ 58/* FIXME: would be nice to have better graphics ... */
59#include "jackpot_slots.h" 59#include "pluginbitmaps/jackpot_slots.h"
60#if NB_SCREENS==2 60#if NB_SCREENS==2
61#include "jackpot_slots_remote.h" 61#include "pluginbitmaps/jackpot_slots_remote.h"
62#endif 62#endif
63 63
64const struct picture jackpot_pictures[]={ 64const struct picture jackpot_pictures[]={
diff --git a/apps/plugins/logo.c b/apps/plugins/logo.c
index 4d4263ee79..be4a39c2b5 100644
--- a/apps/plugins/logo.c
+++ b/apps/plugins/logo.c
@@ -31,7 +31,7 @@ PLUGIN_HEADER
31#ifdef HAVE_REMOTE_LCD 31#ifdef HAVE_REMOTE_LCD
32#define REMOTE_WIDTH LCD_REMOTE_WIDTH 32#define REMOTE_WIDTH LCD_REMOTE_WIDTH
33#define REMOTE_HEIGHT LCD_REMOTE_HEIGHT 33#define REMOTE_HEIGHT LCD_REMOTE_HEIGHT
34#include "remote_rockboxlogo.h" 34#include "pluginbitmaps/remote_rockboxlogo.h"
35#define REMOTE_LOGO_WIDTH BMPWIDTH_remote_rockboxlogo 35#define REMOTE_LOGO_WIDTH BMPWIDTH_remote_rockboxlogo
36#define REMOTE_LOGO_HEIGHT BMPHEIGHT_remote_rockboxlogo 36#define REMOTE_LOGO_HEIGHT BMPHEIGHT_remote_rockboxlogo
37#define REMOTE_LOGO remote_rockboxlogo 37#define REMOTE_LOGO remote_rockboxlogo
@@ -39,7 +39,7 @@ extern const fb_remote_data remote_rockboxlogo[];
39#endif /* HAVE_REMOTE_LCD */ 39#endif /* HAVE_REMOTE_LCD */
40 40
41#define LOGO rockboxlogo 41#define LOGO rockboxlogo
42#include "rockboxlogo.h" 42#include "pluginbitmaps/rockboxlogo.h"
43#define LOGO_WIDTH BMPWIDTH_rockboxlogo 43#define LOGO_WIDTH BMPWIDTH_rockboxlogo
44#define LOGO_HEIGHT BMPHEIGHT_rockboxlogo 44#define LOGO_HEIGHT BMPHEIGHT_rockboxlogo
45extern const fb_data rockboxlogo[]; 45extern const fb_data rockboxlogo[];
diff --git a/apps/plugins/pegbox.c b/apps/plugins/pegbox.c
index 0b181fb3a1..643e793fdc 100644
--- a/apps/plugins/pegbox.c
+++ b/apps/plugins/pegbox.c
@@ -20,12 +20,12 @@
20 ****************************************************************************/ 20 ****************************************************************************/
21#include "plugin.h" 21#include "plugin.h"
22 22
23#include "pegbox_header.h" 23#include "pluginbitmaps/pegbox_header.h"
24#include "pegbox_pieces.h" 24#include "pluginbitmaps/pegbox_pieces.h"
25 25
26#if LCD_HEIGHT >= 80 /* enough space for a graphical menu */ 26#if LCD_HEIGHT >= 80 /* enough space for a graphical menu */
27#include "pegbox_menu_top.h" 27#include "pluginbitmaps/pegbox_menu_top.h"
28#include "pegbox_menu_items.h" 28#include "pluginbitmaps/pegbox_menu_items.h"
29#define MENU_X (LCD_WIDTH-BMPWIDTH_pegbox_menu_items)/2 29#define MENU_X (LCD_WIDTH-BMPWIDTH_pegbox_menu_items)/2
30#define MENU_Y BMPHEIGHT_pegbox_menu_top 30#define MENU_Y BMPHEIGHT_pegbox_menu_top
31#define ITEM_WIDTH BMPWIDTH_pegbox_menu_items 31#define ITEM_WIDTH BMPWIDTH_pegbox_menu_items
diff --git a/apps/plugins/pictureflow.c b/apps/plugins/pictureflow.c
index 7e6a180193..4dde74a94f 100644
--- a/apps/plugins/pictureflow.c
+++ b/apps/plugins/pictureflow.c
@@ -28,8 +28,8 @@
28#include "helper.h" 28#include "helper.h"
29#include "bmp.h" 29#include "bmp.h"
30#include "picture.h" 30#include "picture.h"
31#include "pictureflow_logo.h" 31#include "pluginbitmaps/pictureflow_logo.h"
32#include "pictureflow_emptyslide.h" 32#include "pluginbitmaps/pictureflow_emptyslide.h"
33 33
34 34
35PLUGIN_HEADER 35PLUGIN_HEADER
diff --git a/apps/plugins/sliding_puzzle.c b/apps/plugins/sliding_puzzle.c
index 9303985d03..ef33a4f642 100644
--- a/apps/plugins/sliding_puzzle.c
+++ b/apps/plugins/sliding_puzzle.c
@@ -181,7 +181,7 @@ PLUGIN_HEADER
181#endif 181#endif
182#endif 182#endif
183 183
184#include "sliding_puzzle.h" 184#include "pluginbitmaps/sliding_puzzle.h"
185#define IMAGE_WIDTH BMPWIDTH_sliding_puzzle 185#define IMAGE_WIDTH BMPWIDTH_sliding_puzzle
186#define IMAGE_HEIGHT BMPHEIGHT_sliding_puzzle 186#define IMAGE_HEIGHT BMPHEIGHT_sliding_puzzle
187#define IMAGE_SIZE IMAGE_WIDTH 187#define IMAGE_SIZE IMAGE_WIDTH
diff --git a/apps/plugins/snake2.c b/apps/plugins/snake2.c
index 1bddeb6b3b..a99c646d92 100644
--- a/apps/plugins/snake2.c
+++ b/apps/plugins/snake2.c
@@ -38,11 +38,11 @@ PLUGIN_HEADER
38#define HEIGHT 16 38#define HEIGHT 16
39 39
40#if (LCD_WIDTH >= 160) && (LCD_HEIGHT >= 128) && (LCD_DEPTH >= 1) 40#if (LCD_WIDTH >= 160) && (LCD_HEIGHT >= 128) && (LCD_DEPTH >= 1)
41#include "snake2_header1.h" 41#include "pluginbitmaps/snake2_header1.h"
42#include "snake2_header2.h" 42#include "pluginbitmaps/snake2_header2.h"
43#include "snake2_left.h" 43#include "pluginbitmaps/snake2_left.h"
44#include "snake2_right.h" 44#include "pluginbitmaps/snake2_right.h"
45#include "snake2_bottom.h" 45#include "pluginbitmaps/snake2_bottom.h"
46#define BMPHEIGHT_snake2_header BMPHEIGHT_snake2_header1 46#define BMPHEIGHT_snake2_header BMPHEIGHT_snake2_header1
47#define BMPWIDTH_snake2_header BMPWIDTH_snake2_header1 47#define BMPWIDTH_snake2_header BMPWIDTH_snake2_header1
48#endif 48#endif
diff --git a/apps/plugins/sokoban.c b/apps/plugins/sokoban.c
index 9ac98fe49f..9b9cd29e0a 100644
--- a/apps/plugins/sokoban.c
+++ b/apps/plugins/sokoban.c
@@ -32,7 +32,7 @@ PLUGIN_HEADER
32#define SOKOBAN_SAVE_FILE PLUGIN_GAMES_DIR "/sokoban.save" 32#define SOKOBAN_SAVE_FILE PLUGIN_GAMES_DIR "/sokoban.save"
33#define SOKOBAN_SAVE_FOLDER "/games" 33#define SOKOBAN_SAVE_FOLDER "/games"
34 34
35#include "sokoban_tiles.h" 35#include "pluginbitmaps/sokoban_tiles.h"
36#define SOKOBAN_TILESIZE BMPWIDTH_sokoban_tiles 36#define SOKOBAN_TILESIZE BMPWIDTH_sokoban_tiles
37/* SOKOBAN_TILESIZE is the number of pixels for each block. 37/* SOKOBAN_TILESIZE is the number of pixels for each block.
38 * Set dynamically so all targets can support levels 38 * Set dynamically so all targets can support levels
diff --git a/apps/plugins/solitaire.c b/apps/plugins/solitaire.c
index 2baea48c8d..d48733461d 100644
--- a/apps/plugins/solitaire.c
+++ b/apps/plugins/solitaire.c
@@ -377,9 +377,9 @@ static char helptext[] =
377 * Misc constants, graphics and other defines 377 * Misc constants, graphics and other defines
378 */ 378 */
379 379
380#include "card_back.h" 380#include "pluginbitmaps/card_back.h"
381#include "card_deck.h" 381#include "pluginbitmaps/card_deck.h"
382#include "solitaire_suitsi.h" 382#include "pluginbitmaps/solitaire_suitsi.h"
383 383
384#define CARD_GFX_WIDTH BMPWIDTH_card_back 384#define CARD_GFX_WIDTH BMPWIDTH_card_back
385#define CARD_GFX_HEIGHT BMPHEIGHT_card_back 385#define CARD_GFX_HEIGHT BMPHEIGHT_card_back
diff --git a/apps/plugins/star.c b/apps/plugins/star.c
index 401519bdee..f2bf2c4e5f 100644
--- a/apps/plugins/star.c
+++ b/apps/plugins/star.c
@@ -293,7 +293,7 @@ static int control;
293/* the current board */ 293/* the current board */
294static char board[STAR_HEIGHT][STAR_WIDTH]; 294static char board[STAR_HEIGHT][STAR_WIDTH];
295 295
296#include "star_tiles.h" 296#include "pluginbitmaps/star_tiles.h"
297 297
298#define TILE_WIDTH BMPWIDTH_star_tiles 298#define TILE_WIDTH BMPWIDTH_star_tiles
299#define TILE_HEIGHT (BMPHEIGHT_star_tiles/5) 299#define TILE_HEIGHT (BMPHEIGHT_star_tiles/5)
diff --git a/apps/recorder/icons.h b/apps/recorder/icons.h
index 767e0f2a14..5f2185e1b7 100644
--- a/apps/recorder/icons.h
+++ b/apps/recorder/icons.h
@@ -30,9 +30,9 @@
30 30
31/* External bitmaps */ 31/* External bitmaps */
32 32
33#include <rockboxlogo.h> 33#include "bitmaps/rockboxlogo.h"
34#ifdef HAVE_REMOTE_LCD 34#ifdef HAVE_REMOTE_LCD
35#include <remote_rockboxlogo.h> 35#include "bitmaps/remote_rockboxlogo.h"
36#endif 36#endif
37 37
38 38
diff --git a/apps/screens.c b/apps/screens.c
index 753b666902..2bd7775569 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -61,11 +61,11 @@
61#include "viewport.h" 61#include "viewport.h"
62 62
63#ifdef HAVE_LCD_BITMAP 63#ifdef HAVE_LCD_BITMAP
64#include <bitmaps/usblogo.h> 64#include "bitmaps/usblogo.h"
65#endif 65#endif
66 66
67#ifdef HAVE_REMOTE_LCD 67#ifdef HAVE_REMOTE_LCD
68#include <bitmaps/remote_usblogo.h> 68#include "bitmaps/remote_usblogo.h"
69#endif 69#endif
70 70
71#if (CONFIG_STORAGE & STORAGE_MMC) 71#if (CONFIG_STORAGE & STORAGE_MMC)
diff --git a/tools/make.inc b/tools/make.inc
index d9f4c14cf4..7d97efdbc6 100644
--- a/tools/make.inc
+++ b/tools/make.inc
@@ -48,6 +48,8 @@ $(DEPFILE): $(SOURCES)
48 done | sed -e "s:[^[:space:]]*lang.h:$(OBJDIR)/lang.o:" \ 48 done | sed -e "s:[^[:space:]]*lang.h:$(OBJDIR)/lang.o:" \
49 -e "s:[^[:space:]]*sysfont.h:$(BUILDDIR)/sysfont.h:" \ 49 -e "s:[^[:space:]]*sysfont.h:$(BUILDDIR)/sysfont.h:" \
50 -e "s:[^[:space:]]*max_language_size.h:$(BUILDDIR)/max_language_size.h:" \ 50 -e "s:[^[:space:]]*max_language_size.h:$(BUILDDIR)/max_language_size.h:" \
51 -e "s: bitmaps/: $(BUILDDIR)/bitmaps/:g" \
52 -e "s: pluginbitmaps/: $(BUILDDIR)/pluginbitmaps/:g" \
51 > $(DEPFILE); \ 53 > $(DEPFILE); \
52 echo "oo" > /dev/null ) 54 echo "oo" > /dev/null )
53 55