summaryrefslogtreecommitdiff
path: root/apps/Makefile
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-01-23 01:56:43 +0000
committerDave Chapman <dave@dchapman.com>2006-01-23 01:56:43 +0000
commitda882fcb89080b41486efe06dede6b733b7a7f9e (patch)
tree5b54aa16ee083411fbfbb24aba52d2a340efdf3f /apps/Makefile
parent2c923a5efcd0b82bcf4a609ffc2d71c3556f9d4a (diff)
downloadrockbox-da882fcb89080b41486efe06dede6b733b7a7f9e.zip
rockbox-da882fcb89080b41486efe06dede6b733b7a7f9e.tar.gz
rockbox-da882fcb89080b41486efe06dede6b733b7a7f9e.tar.bz2
rockbox-da882fcb89080b41486efe06dede6b733b7a7f9e.tar.xz
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/Makefile')
-rw-r--r--apps/Makefile24
1 files changed, 18 insertions, 6 deletions
diff --git a/apps/Makefile b/apps/Makefile
index 3f106d1..1f9ab28 100644
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -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