summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-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
14 files changed, 66 insertions, 62 deletions
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)