summaryrefslogtreecommitdiffstats
path: root/tools/rbspeex/Makefile
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-11-16 21:05:34 +0000
committerJens Arnold <amiconn@rockbox.org>2007-11-16 21:05:34 +0000
commit6512224eadf83200d2220fbbc3ca7e3d7f1ffbad (patch)
tree985ce53b86c2446299db88dfcb0e4e92d6d2a63c /tools/rbspeex/Makefile
parent135d1f439a4d85115dd54baaf8e90a977e5a6d08 (diff)
downloadrockbox-6512224eadf83200d2220fbbc3ca7e3d7f1ffbad.tar.gz
rockbox-6512224eadf83200d2220fbbc3ca7e3d7f1ffbad.tar.bz2
rockbox-6512224eadf83200d2220fbbc3ca7e3d7f1ffbad.zip
Build a standalone win32 executable of rbspeexenc on cygwin, for reuse in VoiceBox etc.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15649 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/rbspeex/Makefile')
-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
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 $@