summaryrefslogtreecommitdiff
path: root/apps
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
parent2c923a5efcd0b82bcf4a609ffc2d71c3556f9d4a (diff)
downloadrockbox-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')
-rw-r--r--apps/Makefile24
-rw-r--r--apps/plugins/Makefile25
2 files changed, 36 insertions, 13 deletions
diff --git a/apps/Makefile b/apps/Makefile
index 3f106d10f6..1f9ab284fa 100644
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -23,12 +23,24 @@ CODECS=build-codecs
23endif 23endif
24 24
25# Set up the bitmap libraries 25# Set up the bitmap libraries
26BITMAPLIBS = $(BUILDDIR)/libbitmapsmono.a \ 26BITMAPLIBS =
27 $(BUILDDIR)/libbitmapsnative.a \ 27LINKBITMAPS =
28 $(BUILDDIR)/libbitmapsremotemono.a \ 28ifneq ($(strip $(BMP2RB_MONO)),)
29 $(BUILDDIR)/libbitmapsremotenative.a 29 BITMAPLIBS += $(BUILDDIR)/libbitmapsmono.a
30 30 LINKBITMAPS += -lbitmapsmono
31LINKBITMAPS = -lbitmapsmono -lbitmapsnative -lbitmapsremotemono -lbitmapsremotenative 31endif
32ifneq ($(strip $(BMP2RB_NATIVE)),)
33 BITMAPLIBS += $(BUILDDIR)/libbitmapsnative.a
34 LINKBITMAPS += -lbitmapsnative
35endif
36ifneq ($(strip $(BMP2RB_REMOTEMONO)),)
37 BITMAPLIBS += $(BUILDDIR)/libbitmapsremotemono.a
38 LINKBITMAPS += -lbitmapsremotemono
39endif
40ifneq ($(strip $(BMP2RB_REMOTENATIVE)),)
41 BITMAPLIBS += $(BUILDDIR)/libbitmapsremotenative.a
42 LINKBITMAPS += -lbitmapsremotenative
43endif
32 44
33# This sets up 'SRC' based on the files mentioned in SOURCES 45# This sets up 'SRC' based on the files mentioned in SOURCES
34include $(TOOLSDIR)/makesrc.inc 46include $(TOOLSDIR)/makesrc.inc
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
21endif 21endif
22 22
23# Set up the bitmap libraries 23# Set up the bitmap libraries
24BITMAPLIBS = $(BUILDDIR)/libpluginbitmapsmono.a \ 24BITMAPLIBS =
25 $(BUILDDIR)/libpluginbitmapsnative.a \ 25LINKBITMAPS =
26 $(BUILDDIR)/libpluginbitmapsremotemono.a \ 26ifneq ($(strip $(BMP2RB_MONO)),)
27 $(BUILDDIR)/libpluginbitmapsremotenative.a 27 BITMAPLIBS += $(BUILDDIR)/libpluginbitmapsmono.a
28 28 LINKBITMAPS += -lpluginbitmapsmono
29LINKBITMAPS = -lpluginbitmapsmono -lpluginbitmapsnative \ 29endif
30 -lpluginbitmapsremotemono -lpluginbitmapsremotenative 30ifneq ($(strip $(BMP2RB_NATIVE)),)
31 BITMAPLIBS += $(BUILDDIR)/libpluginbitmapsnative.a
32 LINKBITMAPS += -lpluginbitmapsnative
33endif
34ifneq ($(strip $(BMP2RB_REMOTEMONO)),)
35 BITMAPLIBS += $(BUILDDIR)/libpluginbitmapsremotemono.a
36 LINKBITMAPS += -lpluginbitmapsremotemono
37endif
38ifneq ($(strip $(BMP2RB_REMOTENATIVE)),)
39 BITMAPLIBS += $(BUILDDIR)/libpluginbitmapsremotenative.a
40 LINKBITMAPS += -lpluginbitmapsremotenative
41endif
31 42
32LDS := plugin.lds 43LDS := plugin.lds
33LINKFILE := $(OBJDIR)/pluginlink.lds 44LINKFILE := $(OBJDIR)/pluginlink.lds