1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Dave Chapman 2006-01-23 01:56:43 +00:00
parent 2c923a5efc
commit da882fcb89
2 changed files with 36 additions and 13 deletions

View file

@ -23,12 +23,24 @@ CODECS=build-codecs
endif
# Set up the bitmap libraries
BITMAPLIBS = $(BUILDDIR)/libbitmapsmono.a \
$(BUILDDIR)/libbitmapsnative.a \
$(BUILDDIR)/libbitmapsremotemono.a \
$(BUILDDIR)/libbitmapsremotenative.a
LINKBITMAPS = -lbitmapsmono -lbitmapsnative -lbitmapsremotemono -lbitmapsremotenative
BITMAPLIBS =
LINKBITMAPS =
ifneq ($(strip $(BMP2RB_MONO)),)
BITMAPLIBS += $(BUILDDIR)/libbitmapsmono.a
LINKBITMAPS += -lbitmapsmono
endif
ifneq ($(strip $(BMP2RB_NATIVE)),)
BITMAPLIBS += $(BUILDDIR)/libbitmapsnative.a
LINKBITMAPS += -lbitmapsnative
endif
ifneq ($(strip $(BMP2RB_REMOTEMONO)),)
BITMAPLIBS += $(BUILDDIR)/libbitmapsremotemono.a
LINKBITMAPS += -lbitmapsremotemono
endif
ifneq ($(strip $(BMP2RB_REMOTENATIVE)),)
BITMAPLIBS += $(BUILDDIR)/libbitmapsremotenative.a
LINKBITMAPS += -lbitmapsremotenative
endif
# This sets up 'SRC' based on the files mentioned in SOURCES
include $(TOOLSDIR)/makesrc.inc

View file

@ -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