diff options
| author | Björn Stenberg <bjorn@haxx.se> | 2008-11-03 14:37:50 +0000 |
|---|---|---|
| committer | Björn Stenberg <bjorn@haxx.se> | 2008-11-03 14:37:50 +0000 |
| commit | ac488f8cb77d7786fe22e642f6177f46e5e6b1db (patch) | |
| tree | 9e8ff3c76608bd0d1f788ea01679b82921d0e09d /apps | |
| parent | d34837cba14de3792bd84753370cb8bd92beedbf (diff) | |
| download | rockbox-ac488f8cb77d7786fe22e642f6177f46e5e6b1db.zip rockbox-ac488f8cb77d7786fe22e642f6177f46e5e6b1db.tar.gz rockbox-ac488f8cb77d7786fe22e642f6177f46e5e6b1db.tar.bz2 rockbox-ac488f8cb77d7786fe22e642f6177f46e5e6b1db.tar.xz | |
Makefile overhaul. All generated bitmaps are now explicitly in OBJDIR/bitmaps and OBJDIR/pluginbitmaps, and plugins properly depend on their respective bitmap files. Fixes #6847.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18987 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -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 |
18 files changed, 123 insertions, 110 deletions
diff --git a/apps/Makefile b/apps/Makefile index cc5594a..bceae45 100644 --- a/apps/Makefile +++ b/apps/Makefile @@ -7,8 +7,8 @@ # $Id$ # -INCLUDES= $(TARGET_INC) -I$(FIRMDIR)/include -I$(FIRMDIR)/export -I. -I$(BUILDDIR) \ - -I$(BUILDDIR)/bitmaps -I$(OBJDIR) +INCLUDES= $(TARGET_INC) -I$(FIRMDIR)/include -I$(FIRMDIR)/export -I. \ + -I$(BUILDDIR) -I$(BUILDDIR)/bitmaps -I$(OBJDIR) DEPFILE = $(OBJDIR)/dep-apps @@ -25,7 +25,6 @@ CODECS=build-codecs # This sets up the parameters for building and linking libspeex for core voice VOICE=libspeex-rockbox -VOICELIB=$(BUILDDIR)/libspeex-rockbox.a LINKVOICE= -lspeex-rockbox endif @@ -34,19 +33,19 @@ endif BITMAPLIBS = LINKBITMAPS = ifneq ($(strip $(BMP2RB_MONO)),) - BITMAPLIBS += $(BUILDDIR)/libbitmapsmono.a + BITMAPLIBS += bitmapsmono LINKBITMAPS += -lbitmapsmono endif ifneq ($(strip $(BMP2RB_NATIVE)),) - BITMAPLIBS += $(BUILDDIR)/libbitmapsnative.a + BITMAPLIBS += bitmapsnative LINKBITMAPS += -lbitmapsnative endif ifneq ($(strip $(BMP2RB_REMOTEMONO)),) - BITMAPLIBS += $(BUILDDIR)/libbitmapsremotemono.a + BITMAPLIBS += bitmapsremotemono LINKBITMAPS += -lbitmapsremotemono endif ifneq ($(strip $(BMP2RB_REMOTENATIVE)),) - BITMAPLIBS += $(BUILDDIR)/libbitmapsremotenative.a + BITMAPLIBS += bitmapsremotenative LINKBITMAPS += -lbitmapsremotenative endif @@ -62,7 +61,8 @@ ifdef APPEXTRA INCLUDES += $(patsubst %,-I%,$(subst :, ,$(APPEXTRA))) endif -CFLAGS = $(INCLUDES) $(GCCOPTS) $(TARGET) $(BUILDDATE) $(DEFINES) -DTARGET_ID=$(TARGET_ID) \ +CFLAGS = $(INCLUDES) $(GCCOPTS) $(TARGET) $(BUILDDATE) $(DEFINES) \ + -DTARGET_ID=$(TARGET_ID) \ -DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} \ -DTARGET_NAME=\"$(MODELNAME)\" @@ -79,7 +79,7 @@ LIBROCKBOX = $(BUILDDIR)/librockbox.a ifdef SIMVER # this is a sim build -all: $(BUILDDIR)/$(BINARY) $(CODECS) $(ROCKS) +all: simbuild else # regular target build @@ -91,39 +91,44 @@ else REALBIN = $(BUILDDIR)/$(BINARY) endif -all: $(REALBIN) $(FLASHFILE) $(CODECS) $(ROCKS) $(ARCHOSROM) +all: build + endif -dep: $(DEPFILE) +build: $(DEPFILE) $(BITMAPLIBS) build-codecs build-pluginlib + $(call PRINTS,MAKE in plugins)$(MAKE) -C plugins OBJDIR=$(OBJDIR)/plugins + $(call PRINTS,MAKE in apps)$(MAKE) $(REALBIN) $(FLASHFILE) $(ARCHOSROM) -features: $(OBJDIR)/features - -libspeex-rockbox: - $(SILENT)mkdir -p $(OBJDIR)/libspeex-rockbox - $(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 +simbuild: $(DEPFILE) $(BITMAPLIBS) build-codecs build-pluginlib + $(call PRINTS,MAKE in plugins)$(MAKE) -C plugins OBJDIR=$(OBJDIR)/plugins + $(call PRINTS,MAKE in apps)$(MAKE) $(BUILDDIR)/$(BINARY) build-codecs: $(SILENT)$(MAKE) -C codecs/lib OBJDIR=$(OBJDIR)/codecs/lib $(SILENT)$(MAKE) -C codecs OBJDIR=$(OBJDIR)/codecs -recorder/icons.h: $(BITMAPLIBS) +build-pluginlib: + $(SILENT)$(MAKE) -C plugins/lib OBJDIR=$(OBJDIR)/plugins/lib -$(BUILDDIR)/libbitmapsmono.a: +bitmapsmono: $(call PRINTS,MAKE in bitmaps/mono)$(MAKE) -C bitmaps/mono OBJDIR=$(OBJDIR)/bitmaps/mono -$(BUILDDIR)/libbitmapsnative.a: +bitmapsnative: $(call PRINTS,MAKE in bitmaps/native)$(MAKE) -C bitmaps/native OBJDIR=$(OBJDIR)/bitmaps/native -$(BUILDDIR)/libbitmapsremotemono.a: +bitmapsremotemono: $(call PRINTS,MAKE in bitmaps/remote_mono)$(MAKE) -C bitmaps/remote_mono OBJDIR=$(OBJDIR)/bitmaps/remote_mono -$(BUILDDIR)/libbitmapsremotenative.a: +bitmapsremotenative: $(call PRINTS,MAKE in bitmaps/remote_native)$(MAKE) -C bitmaps/remote_native OBJDIR=$(OBJDIR)/bitmaps/remote_native -rocks: build-codecs - $(SILENT)$(MAKE) -C plugins/lib OBJDIR=$(OBJDIR)/plugins/lib +rocks: build-codecs build-pluginlib $(SILENT)$(MAKE) -C plugins OBJDIR=$(OBJDIR)/plugins +libspeex-rockbox: + $(SILENT)mkdir -p $(OBJDIR)/libspeex-rockbox + $(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 + $(LINKFILE): $(LDS) $(call PRINTS,Build $(@F))cat $< | $(CC) -DLOADADDRESS=$(LOADADDRESS) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - >$@ @@ -136,12 +141,12 @@ $(MAXOUTFILE): $(SILENT)cat $(MAXINFILE) | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - > $(MAXOUTFILE) $(SILENT)rm $(MAXINFILE) -$(OBJDIR)/rombox.elf : $(BITMAPLIBS) $(OBJS) $(LINKROM) $(DEPFILE) $(LIBROCKBOX) $(VOICE) +$(OBJDIR)/rombox.elf : $(OBJS) $(LINKROM) $(LIBROCKBOX) $(VOICE) $(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 ifndef SIMVER -$(OBJDIR)/rockbox.elf : $(BITMAPLIBS) $(OBJS) $(LINKFILE) $(DEPFILE) $(LIBROCKBOX) $(VOICE) +$(OBJDIR)/rockbox.elf : $(OBJS) $(LINKFILE) $(LIBROCKBOX) $(VOICE) $(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 $(OBJDIR)/rockbox.bin : $(OBJDIR)/rockbox.elf @@ -186,7 +191,7 @@ else #SIMULATOR_MAP=-Wl,-Map,$(OBJDIR)/rockbox.map endif -$(BUILDDIR)/$(BINARY) : $(BITMAPLIBS) $(OBJS) $(DEPFILE) $(BUILDDIR)/libsim.a \ +$(BUILDDIR)/$(BINARY) : $(OBJS) $(BUILDDIR)/libsim.a \ $(BUILDDIR)/libcomsim.a $(LIBROCKBOX) $(VOICE) $(call PRINTS,LD $(BINARY))$(CC) $(GCCOPTS) -o $@ $(OBJS) -L$(BUILDDIR) -lrockbox -lsim -lcomsim $(LINKVOICE) $(LINKBITMAPS) $(LDOPTS) $(EXTRAOBJ) $(SIMULATOR_MAP) endif @@ -196,15 +201,16 @@ $(BUILDDIR)/rockbox.ucl: $(OBJDIR)/rockbox.bin $(BUILDDIR)/rombox.ucl: $(OBJDIR)/rombox.bin $(MAXOUTFILE) $(call PRINTS,UCLPACK rombox)$(TOOLSDIR)/uclpack --none $< $@ >/dev/null 2>&1; \ - perl $(TOOLSDIR)/romsizetest.pl `cat $(MAXOUTFILE)` $<; \ - if test $$? -ne 0; then \ - echo "removing UCL file again, making it a fake one"; \ - echo "fake" > $@; \ - fi + perl $(TOOLSDIR)/romsizetest.pl `cat $(MAXOUTFILE)` $<; \ + if test $$? -ne 0; then \ + echo "removing UCL file again, making it a fake one"; \ + echo "fake" > $@; \ + fi $(BUILDDIR)/rombox.iriver: $(OBJDIR)/rombox.bin $(call PRINTS,Build ROM file)$(MKFIRMWARE) $< $@ +# make.inc contains the $(DEPFILE) generation include $(TOOLSDIR)/make.inc # apps/features.txt is a file that (is preprocessed and) lists named features @@ -213,26 +219,28 @@ include $(TOOLSDIR)/make.inc # button.h is included for the HAS_BUTTON_HOLD define. # +features: $(OBJDIR)/features + $(OBJDIR)/features: features.txt - $(SILENT)mkdir -p `dirname $@` + $(SILENT)mkdir -p $(OBJDIR) $(SILENT)cat $< | $(HOSTCC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \ - $(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -imacros "config.h" -imacros "button.h" - | \ - grep -v "^\#" | grep -v "^$$" > $@; \ - for f in `cat $(OBJDIR)/features`; do feat="$$feat:$$f" ; done ; \ - echo "$$feat" >$(OBJDIR)/genlang-features + $(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -imacros "config.h" -imacros "button.h" - | \ + grep -v "^\#" | grep -v "^$$" > $@; \ + for f in `cat $(OBJDIR)/features`; do feat="$$feat:$$f" ; done ; \ + echo "$$feat" >$(OBJDIR)/genlang-features $(OBJDIR)/lang.o: lang/$(LANGUAGE).lang $(OBJDIR)/features $(SILENT)for f in `cat $(OBJDIR)/features`; do feat="$$feat:$$f" ; done; \ - perl -s $(TOOLSDIR)/genlang -p=$(BUILDDIR)/lang -t=$(MODELNAME)$$feat $< + perl -s $(TOOLSDIR)/genlang -p=$(BUILDDIR)/lang -t=$(MODELNAME)$$feat $< $(call PRINTS,CC lang.c)$(CC) $(CFLAGS) -c $(BUILDDIR)/lang.c -o $@ clean: $(call PRINTS,cleaning apps)-rm -f $(OBJS) $(BUILDDIR)/$(BINARY) $(OBJDIR)/rockbox.asm \ - $(OBJDIR)/rockbox.bin $(OBJDIR)/rockbox.elf $(OBJDIR)/*.map \ - $(OBJDIR)/lang.o $(OBJDIR)/build.lang $(BUILDDIR)/lang.[ch] \ - $(LINKFILE) $(BUILDDIR)/rockbox.ucl $(LINKROM) \ - $(BUILDDIR)/rombox.ucl $(OBJDIR)/rombox.bin $(OBJDIR)/rombox.elf \ - $(MAXOUTFILE) $(DEPFILE) + $(OBJDIR)/rockbox.bin $(OBJDIR)/rockbox.elf $(OBJDIR)/*.map \ + $(OBJDIR)/lang.o $(OBJDIR)/build.lang $(BUILDDIR)/lang.[ch] \ + $(LINKFILE) $(BUILDDIR)/rockbox.ucl $(LINKROM) \ + $(BUILDDIR)/rombox.ucl $(OBJDIR)/rombox.bin $(OBJDIR)/rombox.elf \ + $(MAXOUTFILE) $(DEPFILE) $(SILENT)$(MAKE) -C bitmaps/mono clean OBJDIR=$(OBJDIR)/bitmaps/mono $(SILENT)$(MAKE) -C bitmaps/native clean OBJDIR=$(OBJDIR)/bitmaps/native $(SILENT)$(MAKE) -C bitmaps/remote_mono clean OBJDIR=$(OBJDIR)/bitmaps/remote_mono @@ -241,6 +249,7 @@ clean: $(SILENT)$(MAKE) -C codecs clean OBJDIR=$(OBJDIR)/codecs $(SILENT)rm -rf $(OBJDIR)/recorder $(OBJDIR)/player $(SILENT)rm -rf $(BUILDDIR)/bitmaps + $(SILENT)rm -rf $(BUILDDIR)/pluginbitmaps ifdef SIMVER $(SILENT)$(MAKE) -C $(SIMDIR) clean endif diff --git a/apps/gui/icon.c b/apps/gui/icon.c index e247644..e11c21c 100644 --- a/apps/gui/icon.c +++ b/apps/gui/icon.c @@ -30,9 +30,9 @@ #include "bmp.h" #include "filetypes.h" -#include <default_icons.h> +#include "bitmaps/default_icons.h" #if defined(HAVE_REMOTE_LCD) && (NB_SCREENS > 1) -#include <remote_default_icons.h> +#include "bitmaps/remote_default_icons.h" #endif /* 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 4f518a2..c9405a4 100644 --- a/apps/plugins/Makefile +++ b/apps/plugins/Makefile @@ -8,8 +8,8 @@ # INCLUDES = $(TARGET_INC) -I$(FIRMDIR)/include -I$(FIRMDIR)/export -I$(FIRMDIR)/common \ - -I$(FIRMDIR)/drivers -I$(APPSDIR) -Ilib -I$(BUILDDIR) \ - -I$(BUILDDIR)/pluginbitmaps + -I$(FIRMDIR)/drivers -I$(APPSDIR) -Ilib -I$(BUILDDIR) + CFLAGS = $(INCLUDES) $(GCCOPTS) $(TARGET) $(EXTRA_DEFINES) \ -DTARGET_ID=$(TARGET_ID) -DMEM=${MEMORYSIZE} -DPLUGIN @@ -25,19 +25,19 @@ endif BITMAPLIBS = LINKBITMAPS = ifneq ($(strip $(BMP2RB_MONO)),) - BITMAPLIBS += $(BUILDDIR)/libpluginbitmapsmono.a + BITMAPLIBS += pluginbitmapsmono LINKBITMAPS += -lpluginbitmapsmono endif ifneq ($(strip $(BMP2RB_NATIVE)),) - BITMAPLIBS += $(BUILDDIR)/libpluginbitmapsnative.a + BITMAPLIBS += pluginbitmapsnative LINKBITMAPS += -lpluginbitmapsnative endif ifneq ($(strip $(BMP2RB_REMOTEMONO)),) - BITMAPLIBS += $(BUILDDIR)/libpluginbitmapsremotemono.a + BITMAPLIBS += pluginbitmapsremotemono LINKBITMAPS += -lpluginbitmapsremotemono endif ifneq ($(strip $(BMP2RB_REMOTENATIVE)),) - BITMAPLIBS += $(BUILDDIR)/libpluginbitmapsremotenative.a + BITMAPLIBS += pluginbitmapsremotenative LINKBITMAPS += -lpluginbitmapsremotenative endif @@ -60,12 +60,18 @@ DEFS := $(SRC:%.c=$(OBJDIR)/%.def) DIRS = . .PHONY: $(SUBDIRS) -all: $(BUILDDIR)/libplugin.a $(ROCKS) $(SUBDIRS) $(DEPFILE) - -$(DEPFILE): $(BITMAPLIBS) +all: build dep: $(DEPFILE) +build: $(DEPFILE) $(BITMAPLIBS) + $(call PRINTS,MAKE rocks)$(MAKE) rocks + $(call PRINTS,MAKE subdirs)$(MAKE) subdirs + +rocks: $(ROCKS) + +subdirs: $(SUBDIRS) + $(BUILDDIR)/credits.raw: $(DOCSDIR)/CREDITS $(call PRINTS,create credits.raw)perl credits.pl < $< > $@ @@ -73,34 +79,32 @@ $(OBJDIR)/credits.o: credits.c $(BUILDDIR)/credits.raw $(SILENT)mkdir -p $(dir $@) $(call PRINTS,CC $(<F))$(CC) $(CFLAGS) -I$(OBJDIR) -c $< -o $@ -build-bitmapsmono: +pluginbitmapsmono: $(call PRINTS,MAKE in plugins/bitmaps/mono)$(MAKE) -C bitmaps/mono OBJDIR=$(OBJDIR)/bitmaps/mono -build-bitmapsnative: +pluginbitmapsnative: $(call PRINTS,MAKE in plugins/bitmaps/native)$(MAKE) -C bitmaps/native OBJDIR=$(OBJDIR)/bitmaps/native -build-bitmapsremotemono: +pluginbitmapsremotemono: $(call PRINTS,MAKE in plugins/bitmaps/remote_mono)$(MAKE) -C bitmaps/remote_mono OBJDIR=$(OBJDIR)/bitmaps/remote_mono -build-bitmapsremotenative: +pluginbitmapsremotenative: $(call PRINTS,MAKE in plugins/bitmaps/remote_native)$(MAKE) -C bitmaps/remote_native OBJDIR=$(OBJDIR)/bitmaps/remote_native -$(BITMAPLIBS): $(BUILDDIR)/libplugin%.a: build-% - ifndef SIMVER -$(OBJDIR)/%.elf: $(OBJDIR)/%.o $(LINKFILE) $(BUILDDIR)/libplugin.a $(BITMAPLIBS) - $(call PRINTS,LD $(@F))$(CC) $(CFLAGS) -o $@ $< -L$(BUILDDIR) $(CODECLIBS) -lplugin $(LINKBITMAPS) -lgcc \ - -T$(LINKFILE) -Wl,--gc-sections -Wl,-Map,$(OBJDIR)/$*.map +$(OBJDIR)/%.rock: $(OBJDIR)/%.o $(LINKFILE) + $(SILENT)$(CC) $(CFLAGS) -o $(OBJDIR)/$*.elf $< -L$(BUILDDIR) \ + $(CODECLIBS) -lplugin $(LINKBITMAPS) -lgcc \ + -T$(LINKFILE) -Wl,--gc-sections -Wl,-Map,$(OBJDIR)/$*.map + $(call PRINTS,LINK $(@F))$(OC) -O binary $(OBJDIR)/$*.elf $(OBJDIR)/$*.rock -$(OBJDIR)/%.rock : $(OBJDIR)/%.elf - $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@ else ifeq ($(SIMVER), x11) ################################################### # This is the X11 simulator version -$(OBJDIR)/%.rock : $(OBJDIR)/%.o $(BUILDDIR)/libplugin.a $(BITMAPLIBS) +$(OBJDIR)/%.rock : $(OBJDIR)/%.o $(call PRINTS,LD $(@F))$(CC) $(CFLAGS) $(SHARED_FLAG) $< -L$(BUILDDIR) $(CODECLIBS) -lplugin $(LINKBITMAPS) -o $@ ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) # 'x' must be kept or you'll have "Win32 error 5" @@ -115,7 +119,7 @@ ifeq ($(SIMVER), sdl) ################################################### # This is the SDL simulator version -$(OBJDIR)/%.rock : $(OBJDIR)/%.o $(BUILDDIR)/libplugin.a $(BITMAPLIBS) +$(OBJDIR)/%.rock : $(OBJDIR)/%.o $(call PRINTS,LD $(@F))$(CC) $(CFLAGS) $(SHARED_FLAG) $< -L$(BUILDDIR) $(CODECLIBS) -lplugin $(LINKBITMAPS) -o $@ ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) # 'x' must be kept or you'll have "Win32 error 5" @@ -131,7 +135,7 @@ else # end of sdl-simulator DLLTOOLFLAGS = --export-all DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin -$(OBJDIR)/%.rock : $(OBJDIR)/%.o $(BUILDDIR)/libplugin.a $(BITMAPLIBS) +$(OBJDIR)/%.rock : $(OBJDIR)/%.o $(call PRINTS,DLL $(@F))$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $< $(SILENT)$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $< $(BUILDDIR)/libplugin.a $(BITMAPLIBS) \ $(patsubst -l%,$(BUILDDIR)/lib%.a,$(CODECLIBS)) -o $@ @@ -149,17 +153,17 @@ endif # end of simulator section include $(TOOLSDIR)/make.inc -$(BUILDDIR)/libplugin.a: +pluginlib: $(SILENT)mkdir -p $(OBJDIR)/lib $(call PRINTS,MAKE in plugin/lib)$(MAKE) -C lib OBJDIR=$(OBJDIR)/lib $(LINKFILE): $(LDS) $(call PRINTS,build $(@F))cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P - >$@ -$(SUBDIRS): $(BITMAPLIBS) +$(SUBDIRS): $(SILENT)mkdir -p $(OBJDIR)/$@ $(call PRINTS,MAKE in $@)$(MAKE) -C $@ OUTDIR=$(OBJDIR) OBJDIR=$(OBJDIR)/$@ \ - LINKBITMAPS="$(LINKBITMAPS)" BITMAPLIBS="$(BITMAPLIBS)" + LINKBITMAPS="$(LINKBITMAPS)" clean: $(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 e6a9fbd..d120d37 100644 --- a/apps/plugins/blackjack.c +++ b/apps/plugins/blackjack.c @@ -20,8 +20,8 @@ ****************************************************************************/ #include "plugin.h" -#include "card_deck.h" -#include "card_back.h" +#include "pluginbitmaps/card_deck.h" +#include "pluginbitmaps/card_back.h" PLUGIN_HEADER diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c index d6b1827..159e1ec 100644 --- a/apps/plugins/brickmania.c +++ b/apps/plugins/brickmania.c @@ -211,12 +211,12 @@ enum menu_items { BM_SEL_QUIT, }; -#include "brickmania_pads.h" -#include "brickmania_bricks.h" -#include "brickmania_powerups.h" -#include "brickmania_ball.h" -#include "brickmania_menu_items.h" -#include "brickmania_gameover.h" +#include "pluginbitmaps/brickmania_pads.h" +#include "pluginbitmaps/brickmania_bricks.h" +#include "pluginbitmaps/brickmania_powerups.h" +#include "pluginbitmaps/brickmania_ball.h" +#include "pluginbitmaps/brickmania_menu_items.h" +#include "pluginbitmaps/brickmania_gameover.h" #define PAD_WIDTH BMPWIDTH_brickmania_pads #define PAD_HEIGHT (BMPHEIGHT_brickmania_pads/3) @@ -234,13 +234,13 @@ enum menu_items { #define GAMEOVER_HEIGHT BMPHEIGHT_brickmania_gameover #if LCD_DEPTH > 1 /* currently no background bmp for mono screens */ -#include "brickmania_menu_bg.h" +#include "pluginbitmaps/brickmania_menu_bg.h" #define MENU_BGHEIGHT BMPHEIGHT_brickmania_menu_bg #define MENU_BGWIDTH BMPWIDTH_brickmania_menu_bg #endif #ifdef HAVE_LCD_COLOR /* currently no transparency for non-colour */ -#include "brickmania_break.h" +#include "pluginbitmaps/brickmania_break.h" #endif #if (LCD_WIDTH == 320) && (LCD_HEIGHT == 240) diff --git a/apps/plugins/bubbles.c b/apps/plugins/bubbles.c index be94036..17bfeca 100644 --- a/apps/plugins/bubbles.c +++ b/apps/plugins/bubbles.c @@ -99,10 +99,10 @@ PLUGIN_HEADER /* external bitmaps */ #ifdef HAVE_LCD_COLOR -#include "bubbles_background.h" +#include "pluginbitmaps/bubbles_background.h" #endif -#include "bubbles_bubble.h" -#include "bubbles_emblem.h" +#include "pluginbitmaps/bubbles_bubble.h" +#include "pluginbitmaps/bubbles_emblem.h" #define BUBBLE_WIDTH BMPWIDTH_bubbles_bubble #define BUBBLE_HEIGHT BMPHEIGHT_bubbles_bubble diff --git a/apps/plugins/flipit.c b/apps/plugins/flipit.c index 6eff147..76d1293 100644 --- a/apps/plugins/flipit.c +++ b/apps/plugins/flipit.c @@ -253,8 +253,8 @@ static int cursor_pos, moves; #ifdef HAVE_LCD_BITMAP -#include "flipit_cursor.h" -#include "flipit_tokens.h" +#include "pluginbitmaps/flipit_cursor.h" +#include "pluginbitmaps/flipit_tokens.h" #define PANEL_HEIGHT 12 #define TK_WIDTH BMPWIDTH_flipit_cursor diff --git a/apps/plugins/jackpot.c b/apps/plugins/jackpot.c index 38cd12e..a4865b4 100644 --- a/apps/plugins/jackpot.c +++ b/apps/plugins/jackpot.c @@ -56,9 +56,9 @@ static unsigned long char_patterns[NB_SLOTS]; #endif /* FIXME: would be nice to have better graphics ... */ -#include "jackpot_slots.h" +#include "pluginbitmaps/jackpot_slots.h" #if NB_SCREENS==2 -#include "jackpot_slots_remote.h" +#include "pluginbitmaps/jackpot_slots_remote.h" #endif const struct picture jackpot_pictures[]={ diff --git a/apps/plugins/logo.c b/apps/plugins/logo.c index 4d4263e..be4a39c 100644 --- a/apps/plugins/logo.c +++ b/apps/plugins/logo.c @@ -31,7 +31,7 @@ PLUGIN_HEADER #ifdef HAVE_REMOTE_LCD #define REMOTE_WIDTH LCD_REMOTE_WIDTH #define REMOTE_HEIGHT LCD_REMOTE_HEIGHT -#include "remote_rockboxlogo.h" +#include "pluginbitmaps/remote_rockboxlogo.h" #define REMOTE_LOGO_WIDTH BMPWIDTH_remote_rockboxlogo #define REMOTE_LOGO_HEIGHT BMPHEIGHT_remote_rockboxlogo #define REMOTE_LOGO remote_rockboxlogo @@ -39,7 +39,7 @@ extern const fb_remote_data remote_rockboxlogo[]; #endif /* HAVE_REMOTE_LCD */ #define LOGO rockboxlogo -#include "rockboxlogo.h" +#include "pluginbitmaps/rockboxlogo.h" #define LOGO_WIDTH BMPWIDTH_rockboxlogo #define LOGO_HEIGHT BMPHEIGHT_rockboxlogo extern const fb_data rockboxlogo[]; diff --git a/apps/plugins/pegbox.c b/apps/plugins/pegbox.c index 0b181fb..643e793 100644 --- a/apps/plugins/pegbox.c +++ b/apps/plugins/pegbox.c @@ -20,12 +20,12 @@ ****************************************************************************/ #include "plugin.h" -#include "pegbox_header.h" -#include "pegbox_pieces.h" +#include "pluginbitmaps/pegbox_header.h" +#include "pluginbitmaps/pegbox_pieces.h" #if LCD_HEIGHT >= 80 /* enough space for a graphical menu */ -#include "pegbox_menu_top.h" -#include "pegbox_menu_items.h" +#include "pluginbitmaps/pegbox_menu_top.h" +#include "pluginbitmaps/pegbox_menu_items.h" #define MENU_X (LCD_WIDTH-BMPWIDTH_pegbox_menu_items)/2 #define MENU_Y BMPHEIGHT_pegbox_menu_top #define ITEM_WIDTH BMPWIDTH_pegbox_menu_items diff --git a/apps/plugins/pictureflow.c b/apps/plugins/pictureflow.c index 7e6a180..4dde74a 100644 --- a/apps/plugins/pictureflow.c +++ b/apps/plugins/pictureflow.c @@ -28,8 +28,8 @@ #include "helper.h" #include "bmp.h" #include "picture.h" -#include "pictureflow_logo.h" -#include "pictureflow_emptyslide.h" +#include "pluginbitmaps/pictureflow_logo.h" +#include "pluginbitmaps/pictureflow_emptyslide.h" PLUGIN_HEADER diff --git a/apps/plugins/sliding_puzzle.c b/apps/plugins/sliding_puzzle.c index 9303985..ef33a4f 100644 --- a/apps/plugins/sliding_puzzle.c +++ b/apps/plugins/sliding_puzzle.c @@ -181,7 +181,7 @@ PLUGIN_HEADER #endif #endif -#include "sliding_puzzle.h" +#include "pluginbitmaps/sliding_puzzle.h" #define IMAGE_WIDTH BMPWIDTH_sliding_puzzle #define IMAGE_HEIGHT BMPHEIGHT_sliding_puzzle #define IMAGE_SIZE IMAGE_WIDTH diff --git a/apps/plugins/snake2.c b/apps/plugins/snake2.c index 1bddeb6..a99c646 100644 --- a/apps/plugins/snake2.c +++ b/apps/plugins/snake2.c @@ -38,11 +38,11 @@ PLUGIN_HEADER #define HEIGHT 16 #if (LCD_WIDTH >= 160) && (LCD_HEIGHT >= 128) && (LCD_DEPTH >= 1) -#include "snake2_header1.h" -#include "snake2_header2.h" -#include "snake2_left.h" -#include "snake2_right.h" -#include "snake2_bottom.h" +#include "pluginbitmaps/snake2_header1.h" +#include "pluginbitmaps/snake2_header2.h" +#include "pluginbitmaps/snake2_left.h" +#include "pluginbitmaps/snake2_right.h" +#include "pluginbitmaps/snake2_bottom.h" #define BMPHEIGHT_snake2_header BMPHEIGHT_snake2_header1 #define BMPWIDTH_snake2_header BMPWIDTH_snake2_header1 #endif diff --git a/apps/plugins/sokoban.c b/apps/plugins/sokoban.c index 9ac98fe..9b9cd29 100644 --- a/apps/plugins/sokoban.c +++ b/apps/plugins/sokoban.c @@ -32,7 +32,7 @@ PLUGIN_HEADER #define SOKOBAN_SAVE_FILE PLUGIN_GAMES_DIR "/sokoban.save" #define SOKOBAN_SAVE_FOLDER "/games" -#include "sokoban_tiles.h" +#include "pluginbitmaps/sokoban_tiles.h" #define SOKOBAN_TILESIZE BMPWIDTH_sokoban_tiles /* SOKOBAN_TILESIZE is the number of pixels for each block. * Set dynamically so all targets can support levels diff --git a/apps/plugins/solitaire.c b/apps/plugins/solitaire.c index 2baea48..d487334 100644 --- a/apps/plugins/solitaire.c +++ b/apps/plugins/solitaire.c @@ -377,9 +377,9 @@ static char helptext[] = * Misc constants, graphics and other defines */ -#include "card_back.h" -#include "card_deck.h" -#include "solitaire_suitsi.h" +#include "pluginbitmaps/card_back.h" +#include "pluginbitmaps/card_deck.h" +#include "pluginbitmaps/solitaire_suitsi.h" #define CARD_GFX_WIDTH BMPWIDTH_card_back #define CARD_GFX_HEIGHT BMPHEIGHT_card_back diff --git a/apps/plugins/star.c b/apps/plugins/star.c index 401519b..f2bf2c4 100644 --- a/apps/plugins/star.c +++ b/apps/plugins/star.c @@ -293,7 +293,7 @@ static int control; /* the current board */ static char board[STAR_HEIGHT][STAR_WIDTH]; -#include "star_tiles.h" +#include "pluginbitmaps/star_tiles.h" #define TILE_WIDTH BMPWIDTH_star_tiles #define TILE_HEIGHT (BMPHEIGHT_star_tiles/5) diff --git a/apps/recorder/icons.h b/apps/recorder/icons.h index 767e0f2..5f2185e 100644 --- a/apps/recorder/icons.h +++ b/apps/recorder/icons.h @@ -30,9 +30,9 @@ /* External bitmaps */ -#include <rockboxlogo.h> +#include "bitmaps/rockboxlogo.h" #ifdef HAVE_REMOTE_LCD -#include <remote_rockboxlogo.h> +#include "bitmaps/remote_rockboxlogo.h" #endif diff --git a/apps/screens.c b/apps/screens.c index 753b666..2bd7775 100644 --- a/apps/screens.c +++ b/apps/screens.c @@ -61,11 +61,11 @@ #include "viewport.h" #ifdef HAVE_LCD_BITMAP -#include <bitmaps/usblogo.h> +#include "bitmaps/usblogo.h" #endif #ifdef HAVE_REMOTE_LCD -#include <bitmaps/remote_usblogo.h> +#include "bitmaps/remote_usblogo.h" #endif #if (CONFIG_STORAGE & STORAGE_MMC) |