summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/rbspeex/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/rbspeex/Makefile b/tools/rbspeex/Makefile
index a4e8d53..d5183cb 100644
--- a/tools/rbspeex/Makefile
+++ b/tools/rbspeex/Makefile
@@ -18,6 +18,11 @@ SPEEXOPTS = -DHAVE_CONFIG_H -DROCKBOX_VOICE_ENCODER
CFLAGS = $(SPEEXOPTS) $(INCLUDES) -O3 -fomit-frame-pointer -Wno-unused-parameter
+#build standalone win32 executables on cygwin
+ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
+CFLAGS+=-mno-cygwin
+endif
+
# This sets up 'SRC' based on the files mentioned in SOURCES
SRC := $(shell cat $(SPEEXSRC)/SOURCES | $(CC) $(CFLAGS) -E -P - | grep -v "^\#")
@@ -45,7 +50,7 @@ $(DEPFILE): $(SOURCES)
echo "oo" > /dev/null )
../rbspeexenc: $(OBJS) $(DEPFILE)
- $(CC) -o ../rbspeexenc $(OBJS) -lm
+ $(CC) $(CFLAGS) -o ../rbspeexenc $(OBJS) -lm
%.o:
$(CC) $(CFLAGS) -c $< -o $@