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
This commit is contained in:
Dominik Riebeling 2007-12-15 15:11:53 +00:00
parent c21f59090e
commit 84644c3b93

View file

@ -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