summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/rbspeex/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/rbspeex/Makefile b/tools/rbspeex/Makefile
index a4e8d53d35..d5183cb50a 100644
--- a/tools/rbspeex/Makefile
+++ b/tools/rbspeex/Makefile
@@ -18,6 +18,11 @@ SPEEXOPTS = -DHAVE_CONFIG_H -DROCKBOX_VOICE_ENCODER
18 18
19CFLAGS = $(SPEEXOPTS) $(INCLUDES) -O3 -fomit-frame-pointer -Wno-unused-parameter 19CFLAGS = $(SPEEXOPTS) $(INCLUDES) -O3 -fomit-frame-pointer -Wno-unused-parameter
20 20
21#build standalone win32 executables on cygwin
22ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
23CFLAGS+=-mno-cygwin
24endif
25
21# This sets up 'SRC' based on the files mentioned in SOURCES 26# This sets up 'SRC' based on the files mentioned in SOURCES
22SRC := $(shell cat $(SPEEXSRC)/SOURCES | $(CC) $(CFLAGS) -E -P - | grep -v "^\#") 27SRC := $(shell cat $(SPEEXSRC)/SOURCES | $(CC) $(CFLAGS) -E -P - | grep -v "^\#")
23 28
@@ -45,7 +50,7 @@ $(DEPFILE): $(SOURCES)
45 echo "oo" > /dev/null ) 50 echo "oo" > /dev/null )
46 51
47../rbspeexenc: $(OBJS) $(DEPFILE) 52../rbspeexenc: $(OBJS) $(DEPFILE)
48 $(CC) -o ../rbspeexenc $(OBJS) -lm 53 $(CC) $(CFLAGS) -o ../rbspeexenc $(OBJS) -lm
49 54
50%.o: 55%.o:
51 $(CC) $(CFLAGS) -c $< -o $@ 56 $(CC) $(CFLAGS) -c $< -o $@