diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2007-12-15 15:11:53 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2007-12-15 15:11:53 +0000 |
commit | 84644c3b93e2fee4e021329c91ebe99824b87616 (patch) | |
tree | 97f619ed1ec6961c41979505e24f928ba711fe06 /tools/rbspeex | |
parent | c21f59090e5f0283bc3a4f719e16ea7ec4d12fa8 (diff) | |
download | rockbox-84644c3b93e2fee4e021329c91ebe99824b87616.tar.gz rockbox-84644c3b93e2fee4e021329c91ebe99824b87616.zip |
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/rbspeex')
-rw-r--r-- | tools/rbspeex/Makefile | 6 |
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 | |||
22 | ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN) | 22 | ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN) |
23 | CFLAGS+=-mno-cygwin | 23 | CFLAGS+=-mno-cygwin |
24 | endif | 24 | endif |
25 | # on mingw32, make sure CC is set to gcc | ||
26 | ifeq ($(findstring MINGW,$(shell uname)),MINGW) | ||
27 | CC = gcc | ||
28 | endif | ||
25 | 29 | ||
26 | # This sets up 'SRC' based on the files mentioned in SOURCES | 30 | # This sets up 'SRC' based on the files mentioned in SOURCES |
27 | SRC := $(shell cat $(SPEEXSRC)/SOURCES | $(CC) $(CFLAGS) -E -P - | grep -v "^\#") | 31 | SRC := $(shell cat $(SPEEXSRC)/SOURCES | $(CC) $(CFLAGS) -E -P - | grep -v "^\#") |
@@ -51,7 +55,7 @@ $(DEPFILE): $(SOURCES) | |||
51 | 55 | ||
52 | librbspeex.a: $(OBJS) $(DEPFILE) rbspeex.o | 56 | librbspeex.a: $(OBJS) $(DEPFILE) rbspeex.o |
53 | @echo AR librbspeex.a | 57 | @echo AR librbspeex.a |
54 | $(AR) ruv $@ $+ > /dev/null 2>&1 | 58 | $(SILENT)$(AR) ruv $@ $+ > /dev/null 2>&1 |
55 | 59 | ||
56 | ../rbspeexenc: $(OBJS) rbspeexenc.o librbspeex.a | 60 | ../rbspeexenc: $(OBJS) rbspeexenc.o librbspeex.a |
57 | @echo Linking ../rbspeexenc | 61 | @echo Linking ../rbspeexenc |