diff options
-rw-r--r-- | apps/codecs/libmad/libmad.make | 2 | ||||
-rw-r--r-- | apps/codecs/libspeex/libspeex.make | 2 | ||||
-rw-r--r-- | tools/functions.make | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/codecs/libmad/libmad.make b/apps/codecs/libmad/libmad.make index c09f7f091f..0ee4eb7768 100644 --- a/apps/codecs/libmad/libmad.make +++ b/apps/codecs/libmad/libmad.make | |||
@@ -27,7 +27,7 @@ $(MADLIB): $(MADLIB_OBJ) | |||
27 | # libmad-mpeg | 27 | # libmad-mpeg |
28 | MPEGMADLIB := $(CODECDIR)/libmad-mpeg.a | 28 | MPEGMADLIB := $(CODECDIR)/libmad-mpeg.a |
29 | MPEGMADLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libmad/SOURCES) | 29 | MPEGMADLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libmad/SOURCES) |
30 | MPEGMADLIB_OBJ := $(subst .c,.o,$(subst .S,.o,$(subst $(ROOTDIR)/apps/codecs/libmad,$(BUILDDIR)/apps/codecs/libmad-mpeg,$(MPEGMADLIB_SRC)))) | 30 | MPEGMADLIB_OBJ := $(addsuffix .o,$(basename $(subst $(ROOTDIR)/apps/codecs/libmad,$(BUILDDIR)/apps/codecs/libmad-mpeg,$(MPEGMADLIB_SRC)))) |
31 | 31 | ||
32 | $(MPEGMADLIB): $(MPEGMADLIB_OBJ) | 32 | $(MPEGMADLIB): $(MPEGMADLIB_OBJ) |
33 | $(call PRINTS,AR $(@F))$(AR) rs $@ $^ >/dev/null 2>&1 | 33 | $(call PRINTS,AR $(@F))$(AR) rs $@ $^ >/dev/null 2>&1 |
diff --git a/apps/codecs/libspeex/libspeex.make b/apps/codecs/libspeex/libspeex.make index 80d74ec77f..483074a487 100644 --- a/apps/codecs/libspeex/libspeex.make +++ b/apps/codecs/libspeex/libspeex.make | |||
@@ -37,7 +37,7 @@ $(SPEEXLIB): $(SPEEXLIB_OBJ) | |||
37 | # libspeex-voice | 37 | # libspeex-voice |
38 | VOICESPEEXLIB := $(CODECDIR)/libspeex-voice.a | 38 | VOICESPEEXLIB := $(CODECDIR)/libspeex-voice.a |
39 | VOICESPEEXLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libspeex/SOURCES) | 39 | VOICESPEEXLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libspeex/SOURCES) |
40 | VOICESPEEXLIB_OBJ := $(subst .c,.o,$(subst .S,.o,$(subst $(ROOTDIR)/apps/codecs/libspeex,$(BUILDDIR)/apps/codecs/libspeex-voice,$(VOICESPEEXLIB_SRC)))) | 40 | VOICESPEEXLIB_OBJ := $(addsuffix .o,$(basename $(subst $(ROOTDIR)/apps/codecs/libspeex,$(BUILDDIR)/apps/codecs/libspeex-voice,$(VOICESPEEXLIB_SRC)))) |
41 | 41 | ||
42 | $(VOICESPEEXLIB): $(VOICESPEEXLIB_OBJ) | 42 | $(VOICESPEEXLIB): $(VOICESPEEXLIB_OBJ) |
43 | $(call PRINTS,AR $(@F))$(AR) rs $@ $^ >/dev/null 2>&1 | 43 | $(call PRINTS,AR $(@F))$(AR) rs $@ $^ >/dev/null 2>&1 |
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) | | |||
25 | preprocess2file = $(shell $(CC) $(PPCFLAGS) $(3) -E -P -x c -include config.h $(1) | \ | 25 | preprocess2file = $(shell $(CC) $(PPCFLAGS) $(3) -E -P -x c -include config.h $(1) | \ |
26 | grep -v '^\#' | grep -v "^$$" > $(2)) | 26 | grep -v '^\#' | grep -v "^$$" > $(2)) |
27 | 27 | ||
28 | c2obj = $(subst .c,.o,$(subst .S,.o,$(subst $(ROOTDIR),$(BUILDDIR),$(1)))) | 28 | c2obj = $(addsuffix .o,$(basename $(subst $(ROOTDIR),$(BUILDDIR),$(1)))) |
29 | 29 | ||
30 | # calculate dependencies for a list of source files $(2) and output them | 30 | # calculate dependencies for a list of source files $(2) and output them |
31 | # to a file $(1) | 31 | # to a file $(1) |