summaryrefslogtreecommitdiffstats
path: root/tools/functions.make
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2008-12-15 09:55:20 +0000
committerBjörn Stenberg <bjorn@haxx.se>2008-12-15 09:55:20 +0000
commit0d97a5f021232f4e2f0612b366126c960fca7e34 (patch)
tree88cd3545bc5297b8485c339a22af2b2196180fcf /tools/functions.make
parente4cf6311cbaecdd6a46de36575a4efe543273277 (diff)
downloadrockbox-0d97a5f021232f4e2f0612b366126c960fca7e34.tar.gz
rockbox-0d97a5f021232f4e2f0612b366126c960fca7e34.zip
Better file suffix replacement. Bug fix by Nils Wallménius. Closes FS #9644.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19443 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/functions.make')
-rw-r--r--tools/functions.make2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/functions.make b/tools/functions.make
index 4061cf658f..97c98a1f8d 100644
--- a/tools/functions.make
+++ b/tools/functions.make
@@ -25,7 +25,7 @@ preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c -include config.h $(1) |
preprocess2file = $(shell $(CC) $(PPCFLAGS) $(3) -E -P -x c -include config.h $(1) | \
grep -v '^\#' | grep -v "^$$" > $(2))
-c2obj = $(subst .c,.o,$(subst .S,.o,$(subst $(ROOTDIR),$(BUILDDIR),$(1))))
+c2obj = $(addsuffix .o,$(basename $(subst $(ROOTDIR),$(BUILDDIR),$(1))))
# calculate dependencies for a list of source files $(2) and output them
# to a file $(1)