summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2007-12-15 15:11:53 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2007-12-15 15:11:53 +0000
commit84644c3b93e2fee4e021329c91ebe99824b87616 (patch)
tree97f619ed1ec6961c41979505e24f928ba711fe06 /tools
parentc21f59090e5f0283bc3a4f719e16ea7ec4d12fa8 (diff)
when building on MinGW, make sure to set CC to gcc. Make ar call silent.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15935 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rw-r--r--tools/rbspeex/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/rbspeex/Makefile b/tools/rbspeex/Makefile
index a2b6725f5d..9b2feb196f 100644
--- a/tools/rbspeex/Makefile
+++ b/tools/rbspeex/Makefile
@@ -22,6 +22,10 @@ CFLAGS = $(SPEEXOPTS) $(INCLUDES) -O3 -fomit-frame-pointer -Wno-unused-parameter
ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
CFLAGS+=-mno-cygwin
endif
+# on mingw32, make sure CC is set to gcc
+ifeq ($(findstring MINGW,$(shell uname)),MINGW)
+CC = gcc
+endif
# This sets up 'SRC' based on the files mentioned in SOURCES
SRC := $(shell cat $(SPEEXSRC)/SOURCES | $(CC) $(CFLAGS) -E -P - | grep -v "^\#")
@@ -51,7 +55,7 @@ $(DEPFILE): $(SOURCES)
librbspeex.a: $(OBJS) $(DEPFILE) rbspeex.o
@echo AR librbspeex.a
- $(AR) ruv $@ $+ > /dev/null 2>&1
+ $(SILENT)$(AR) ruv $@ $+ > /dev/null 2>&1
../rbspeexenc: $(OBJS) rbspeexenc.o librbspeex.a
@echo Linking ../rbspeexenc