From 84644c3b93e2fee4e021329c91ebe99824b87616 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sat, 15 Dec 2007 15:11:53 +0000 Subject: 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 --- tools/rbspeex/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools/rbspeex/Makefile') 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 -- cgit