summaryrefslogtreecommitdiffstats
path: root/tools/functions.make
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2009-07-12 22:02:09 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2009-07-12 22:02:09 +0000
commit541072ae5db3c90061ded649b92507c488a8ad9f (patch)
treefbdfe7d34840a5e377fcc8420e5bf7f350e119d9 /tools/functions.make
parent672b8b6375198f69c6260dd6e973c7e03c05ff0c (diff)
downloadrockbox-541072ae5db3c90061ded649b92507c488a8ad9f.tar.gz
rockbox-541072ae5db3c90061ded649b92507c488a8ad9f.tar.bz2
rockbox-541072ae5db3c90061ded649b92507c488a8ad9f.zip
Rework addtargetdir.pl to also fix prefix generated-file depedencies with the target directory, and simplify the sed expression for mkdepfile.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21826 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/functions.make')
-rw-r--r--tools/functions.make13
1 files changed, 4 insertions, 9 deletions
diff --git a/tools/functions.make b/tools/functions.make
index 6748962d6a..66354ebc18 100644
--- a/tools/functions.make
+++ b/tools/functions.make
@@ -28,17 +28,12 @@ preprocess2file = $(shell $(CC) $(PPCFLAGS) $(3) -E -P -x c -include config.h $(
c2obj = $(addsuffix .o,$(basename $(subst $(ROOTDIR),$(BUILDDIR),$(1))))
# calculate dependencies for a list of source files $(2) and output them
-# to a file $(1)
+# to a file $(1)_, to be later renamed to $(1).
mkdepfile = $(shell \
$(CC) $(PPCFLAGS) $(OTHER_INC) -MG -MM -include config.h $(2) | \
- $(TOOLSDIR)/addtargetdir.pl $(ROOTDIR) $(BUILDDIR) | \
- sed -e "s: lang.h: $(BUILDDIR)/lang/lang_core.o:" \
- -e "s: sysfont.h: $(BUILDDIR)/sysfont.h:" \
- -e "s: max_language_size.h: $(BUILDDIR)/lang/max_language_size.h:" \
- -e "s: bitmaps/: $(BUILDDIR)/bitmaps/:g" \
- -e "s: pluginbitmaps/: $(BUILDDIR)/pluginbitmaps/:g" \
- -e "s: lib/: $(APPSDIR)/plugins/lib/:g" \
- -e "s: codeclib.h: $(APPSDIR)/codecs/lib/codeclib.h:g" \
+ sed -e "s: lang.h: lang/lang_core.o:" \
+ -e "s: max_language_size.h: lang/max_language_size.h:" | \
+ $(TOOLSDIR)/addtargetdir.pl $(ROOTDIR) $(BUILDDIR) \
>> $(1)_)
# function to create .bmp dependencies