summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
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
22ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN) 22ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
23CFLAGS+=-mno-cygwin 23CFLAGS+=-mno-cygwin
24endif 24endif
25# on mingw32, make sure CC is set to gcc
26ifeq ($(findstring MINGW,$(shell uname)),MINGW)
27CC = gcc
28endif
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
27SRC := $(shell cat $(SPEEXSRC)/SOURCES | $(CC) $(CFLAGS) -E -P - | grep -v "^\#") 31SRC := $(shell cat $(SPEEXSRC)/SOURCES | $(CC) $(CFLAGS) -E -P - | grep -v "^\#")
@@ -51,7 +55,7 @@ $(DEPFILE): $(SOURCES)
51 55
52librbspeex.a: $(OBJS) $(DEPFILE) rbspeex.o 56librbspeex.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