diff options
-rw-r--r-- | apps/Makefile | 93 | ||||
-rw-r--r-- | apps/gui/icon.c | 4 | ||||
-rw-r--r-- | apps/plugins/Makefile | 56 | ||||
-rw-r--r-- | apps/plugins/blackjack.c | 4 | ||||
-rw-r--r-- | apps/plugins/brickmania.c | 16 | ||||
-rw-r--r-- | apps/plugins/bubbles.c | 6 | ||||
-rw-r--r-- | apps/plugins/flipit.c | 4 | ||||
-rw-r--r-- | apps/plugins/jackpot.c | 4 | ||||
-rw-r--r-- | apps/plugins/logo.c | 4 | ||||
-rw-r--r-- | apps/plugins/pegbox.c | 8 | ||||
-rw-r--r-- | apps/plugins/pictureflow.c | 4 | ||||
-rw-r--r-- | apps/plugins/sliding_puzzle.c | 2 | ||||
-rw-r--r-- | apps/plugins/snake2.c | 10 | ||||
-rw-r--r-- | apps/plugins/sokoban.c | 2 | ||||
-rw-r--r-- | apps/plugins/solitaire.c | 6 | ||||
-rw-r--r-- | apps/plugins/star.c | 2 | ||||
-rw-r--r-- | apps/recorder/icons.h | 4 | ||||
-rw-r--r-- | apps/screens.c | 4 | ||||
-rw-r--r-- | tools/make.inc | 2 |
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 | ||
10 | INCLUDES= $(TARGET_INC) -I$(FIRMDIR)/include -I$(FIRMDIR)/export -I. -I$(BUILDDIR) \ | 10 | INCLUDES= $(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 | ||
13 | DEPFILE = $(OBJDIR)/dep-apps | 13 | DEPFILE = $(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 |
27 | VOICE=libspeex-rockbox | 27 | VOICE=libspeex-rockbox |
28 | VOICELIB=$(BUILDDIR)/libspeex-rockbox.a | ||
29 | LINKVOICE= -lspeex-rockbox | 28 | LINKVOICE= -lspeex-rockbox |
30 | 29 | ||
31 | endif | 30 | endif |
@@ -34,19 +33,19 @@ endif | |||
34 | BITMAPLIBS = | 33 | BITMAPLIBS = |
35 | LINKBITMAPS = | 34 | LINKBITMAPS = |
36 | ifneq ($(strip $(BMP2RB_MONO)),) | 35 | ifneq ($(strip $(BMP2RB_MONO)),) |
37 | BITMAPLIBS += $(BUILDDIR)/libbitmapsmono.a | 36 | BITMAPLIBS += bitmapsmono |
38 | LINKBITMAPS += -lbitmapsmono | 37 | LINKBITMAPS += -lbitmapsmono |
39 | endif | 38 | endif |
40 | ifneq ($(strip $(BMP2RB_NATIVE)),) | 39 | ifneq ($(strip $(BMP2RB_NATIVE)),) |
41 | BITMAPLIBS += $(BUILDDIR)/libbitmapsnative.a | 40 | BITMAPLIBS += bitmapsnative |
42 | LINKBITMAPS += -lbitmapsnative | 41 | LINKBITMAPS += -lbitmapsnative |
43 | endif | 42 | endif |
44 | ifneq ($(strip $(BMP2RB_REMOTEMONO)),) | 43 | ifneq ($(strip $(BMP2RB_REMOTEMONO)),) |
45 | BITMAPLIBS += $(BUILDDIR)/libbitmapsremotemono.a | 44 | BITMAPLIBS += bitmapsremotemono |
46 | LINKBITMAPS += -lbitmapsremotemono | 45 | LINKBITMAPS += -lbitmapsremotemono |
47 | endif | 46 | endif |
48 | ifneq ($(strip $(BMP2RB_REMOTENATIVE)),) | 47 | ifneq ($(strip $(BMP2RB_REMOTENATIVE)),) |
49 | BITMAPLIBS += $(BUILDDIR)/libbitmapsremotenative.a | 48 | BITMAPLIBS += bitmapsremotenative |
50 | LINKBITMAPS += -lbitmapsremotenative | 49 | LINKBITMAPS += -lbitmapsremotenative |
51 | endif | 50 | endif |
52 | 51 | ||
@@ -62,7 +61,8 @@ ifdef APPEXTRA | |||
62 | INCLUDES += $(patsubst %,-I%,$(subst :, ,$(APPEXTRA))) | 61 | INCLUDES += $(patsubst %,-I%,$(subst :, ,$(APPEXTRA))) |
63 | endif | 62 | endif |
64 | 63 | ||
65 | CFLAGS = $(INCLUDES) $(GCCOPTS) $(TARGET) $(BUILDDATE) $(DEFINES) -DTARGET_ID=$(TARGET_ID) \ | 64 | CFLAGS = $(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 | |||
79 | ifdef SIMVER | 79 | ifdef SIMVER |
80 | # this is a sim build | 80 | # this is a sim build |
81 | 81 | ||
82 | all: $(BUILDDIR)/$(BINARY) $(CODECS) $(ROCKS) | 82 | all: simbuild |
83 | 83 | ||
84 | else | 84 | else |
85 | # regular target build | 85 | # regular target build |
@@ -91,39 +91,44 @@ else | |||
91 | REALBIN = $(BUILDDIR)/$(BINARY) | 91 | REALBIN = $(BUILDDIR)/$(BINARY) |
92 | endif | 92 | endif |
93 | 93 | ||
94 | all: $(REALBIN) $(FLASHFILE) $(CODECS) $(ROCKS) $(ARCHOSROM) | 94 | all: build |
95 | |||
95 | endif | 96 | endif |
96 | 97 | ||
97 | dep: $(DEPFILE) | 98 | build: $(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 | ||
99 | features: $(OBJDIR)/features | 102 | simbuild: $(DEPFILE) $(BITMAPLIBS) build-codecs build-pluginlib |
100 | 103 | $(call PRINTS,MAKE in plugins)$(MAKE) -C plugins OBJDIR=$(OBJDIR)/plugins | |
101 | libspeex-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 | ||
105 | build-codecs: | 106 | build-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 | ||
109 | recorder/icons.h: $(BITMAPLIBS) | 110 | build-pluginlib: |
111 | $(SILENT)$(MAKE) -C plugins/lib OBJDIR=$(OBJDIR)/plugins/lib | ||
110 | 112 | ||
111 | $(BUILDDIR)/libbitmapsmono.a: | 113 | bitmapsmono: |
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: | 116 | bitmapsnative: |
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: | 119 | bitmapsremotemono: |
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: | 122 | bitmapsremotenative: |
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 | ||
123 | rocks: build-codecs | 125 | rocks: 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 | ||
128 | libspeex-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 | ||
142 | ifndef SIMVER | 147 | ifndef 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 |
187 | endif | 192 | endif |
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) |
192 | endif | 197 | endif |
@@ -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 | ||
208 | include $(TOOLSDIR)/make.inc | 214 | include $(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 | ||
222 | features: $(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 | ||
229 | clean: | 237 | clean: |
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 | ||
244 | ifdef SIMVER | 253 | ifdef SIMVER |
245 | $(SILENT)$(MAKE) -C $(SIMDIR) clean | 254 | $(SILENT)$(MAKE) -C $(SIMDIR) clean |
246 | endif | 255 | endif |
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 | ||
10 | INCLUDES = $(TARGET_INC) -I$(FIRMDIR)/include -I$(FIRMDIR)/export -I$(FIRMDIR)/common \ | 10 | INCLUDES = $(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 | |
13 | CFLAGS = $(INCLUDES) $(GCCOPTS) $(TARGET) $(EXTRA_DEFINES) \ | 13 | CFLAGS = $(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 | |||
25 | BITMAPLIBS = | 25 | BITMAPLIBS = |
26 | LINKBITMAPS = | 26 | LINKBITMAPS = |
27 | ifneq ($(strip $(BMP2RB_MONO)),) | 27 | ifneq ($(strip $(BMP2RB_MONO)),) |
28 | BITMAPLIBS += $(BUILDDIR)/libpluginbitmapsmono.a | 28 | BITMAPLIBS += pluginbitmapsmono |
29 | LINKBITMAPS += -lpluginbitmapsmono | 29 | LINKBITMAPS += -lpluginbitmapsmono |
30 | endif | 30 | endif |
31 | ifneq ($(strip $(BMP2RB_NATIVE)),) | 31 | ifneq ($(strip $(BMP2RB_NATIVE)),) |
32 | BITMAPLIBS += $(BUILDDIR)/libpluginbitmapsnative.a | 32 | BITMAPLIBS += pluginbitmapsnative |
33 | LINKBITMAPS += -lpluginbitmapsnative | 33 | LINKBITMAPS += -lpluginbitmapsnative |
34 | endif | 34 | endif |
35 | ifneq ($(strip $(BMP2RB_REMOTEMONO)),) | 35 | ifneq ($(strip $(BMP2RB_REMOTEMONO)),) |
36 | BITMAPLIBS += $(BUILDDIR)/libpluginbitmapsremotemono.a | 36 | BITMAPLIBS += pluginbitmapsremotemono |
37 | LINKBITMAPS += -lpluginbitmapsremotemono | 37 | LINKBITMAPS += -lpluginbitmapsremotemono |
38 | endif | 38 | endif |
39 | ifneq ($(strip $(BMP2RB_REMOTENATIVE)),) | 39 | ifneq ($(strip $(BMP2RB_REMOTENATIVE)),) |
40 | BITMAPLIBS += $(BUILDDIR)/libpluginbitmapsremotenative.a | 40 | BITMAPLIBS += pluginbitmapsremotenative |
41 | LINKBITMAPS += -lpluginbitmapsremotenative | 41 | LINKBITMAPS += -lpluginbitmapsremotenative |
42 | endif | 42 | endif |
43 | 43 | ||
@@ -60,12 +60,18 @@ DEFS := $(SRC:%.c=$(OBJDIR)/%.def) | |||
60 | DIRS = . | 60 | DIRS = . |
61 | 61 | ||
62 | .PHONY: $(SUBDIRS) | 62 | .PHONY: $(SUBDIRS) |
63 | all: $(BUILDDIR)/libplugin.a $(ROCKS) $(SUBDIRS) $(DEPFILE) | 63 | all: build |
64 | |||
65 | $(DEPFILE): $(BITMAPLIBS) | ||
66 | 64 | ||
67 | dep: $(DEPFILE) | 65 | dep: $(DEPFILE) |
68 | 66 | ||
67 | build: $(DEPFILE) $(BITMAPLIBS) | ||
68 | $(call PRINTS,MAKE rocks)$(MAKE) rocks | ||
69 | $(call PRINTS,MAKE subdirs)$(MAKE) subdirs | ||
70 | |||
71 | rocks: $(ROCKS) | ||
72 | |||
73 | subdirs: $(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 | ||
76 | build-bitmapsmono: | 82 | pluginbitmapsmono: |
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 | ||
79 | build-bitmapsnative: | 85 | pluginbitmapsnative: |
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 | ||
82 | build-bitmapsremotemono: | 88 | pluginbitmapsremotemono: |
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 | ||
85 | build-bitmapsremotenative: | 91 | pluginbitmapsremotenative: |
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 | |||
90 | ifndef SIMVER | 94 | ifndef 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 $< $@ | ||
97 | else | 101 | else |
98 | 102 | ||
99 | ifeq ($(SIMVER), x11) | 103 | ifeq ($(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 $@ |
105 | ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) | 109 | ifeq ($(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 $@ |
120 | ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) | 124 | ifeq ($(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 | |||
131 | DLLTOOLFLAGS = --export-all | 135 | DLLTOOLFLAGS = --export-all |
132 | DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin | 136 | DLLWRAPFLAGS = -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 | ||
150 | include $(TOOLSDIR)/make.inc | 154 | include $(TOOLSDIR)/make.inc |
151 | 155 | ||
152 | $(BUILDDIR)/libplugin.a: | 156 | pluginlib: |
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 | ||
164 | clean: | 168 | clean: |
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 | ||
26 | PLUGIN_HEADER | 26 | PLUGIN_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 | ||
64 | const struct picture jackpot_pictures[]={ | 64 | const 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 |
45 | extern const fb_data rockboxlogo[]; | 45 | extern 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 | ||
35 | PLUGIN_HEADER | 35 | PLUGIN_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 */ |
294 | static char board[STAR_HEIGHT][STAR_WIDTH]; | 294 | static 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 | ||