diff options
author | Dave Chapman <dave@dchapman.com> | 2006-01-23 01:56:43 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2006-01-23 01:56:43 +0000 |
commit | da882fcb89080b41486efe06dede6b733b7a7f9e (patch) | |
tree | 5b54aa16ee083411fbfbb24aba52d2a340efdf3f /apps/plugins/Makefile | |
parent | 2c923a5efcd0b82bcf4a609ffc2d71c3556f9d4a (diff) | |
download | rockbox-da882fcb89080b41486efe06dede6b733b7a7f9e.tar.gz rockbox-da882fcb89080b41486efe06dede6b733b7a7f9e.zip |
bmp2rb build system optimisation - only build the necessary libraries for the target.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8422 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/Makefile')
-rw-r--r-- | apps/plugins/Makefile | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/apps/plugins/Makefile b/apps/plugins/Makefile index 04bb62fbe3..ca3b51482c 100644 --- a/apps/plugins/Makefile +++ b/apps/plugins/Makefile @@ -21,13 +21,24 @@ ifdef SOFTWARECODECS endif # Set up the bitmap libraries -BITMAPLIBS = $(BUILDDIR)/libpluginbitmapsmono.a \ - $(BUILDDIR)/libpluginbitmapsnative.a \ - $(BUILDDIR)/libpluginbitmapsremotemono.a \ - $(BUILDDIR)/libpluginbitmapsremotenative.a - -LINKBITMAPS = -lpluginbitmapsmono -lpluginbitmapsnative \ - -lpluginbitmapsremotemono -lpluginbitmapsremotenative +BITMAPLIBS = +LINKBITMAPS = +ifneq ($(strip $(BMP2RB_MONO)),) + BITMAPLIBS += $(BUILDDIR)/libpluginbitmapsmono.a + LINKBITMAPS += -lpluginbitmapsmono +endif +ifneq ($(strip $(BMP2RB_NATIVE)),) + BITMAPLIBS += $(BUILDDIR)/libpluginbitmapsnative.a + LINKBITMAPS += -lpluginbitmapsnative +endif +ifneq ($(strip $(BMP2RB_REMOTEMONO)),) + BITMAPLIBS += $(BUILDDIR)/libpluginbitmapsremotemono.a + LINKBITMAPS += -lpluginbitmapsremotemono +endif +ifneq ($(strip $(BMP2RB_REMOTENATIVE)),) + BITMAPLIBS += $(BUILDDIR)/libpluginbitmapsremotenative.a + LINKBITMAPS += -lpluginbitmapsremotenative +endif LDS := plugin.lds LINKFILE := $(OBJDIR)/pluginlink.lds |