forked from len0rd/rockbox
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
This commit is contained in:
parent
135d1f439a
commit
6512224ead
1 changed files with 6 additions and 1 deletions
|
|
@ -18,6 +18,11 @@ SPEEXOPTS = -DHAVE_CONFIG_H -DROCKBOX_VOICE_ENCODER
|
||||||
|
|
||||||
CFLAGS = $(SPEEXOPTS) $(INCLUDES) -O3 -fomit-frame-pointer -Wno-unused-parameter
|
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
|
# This sets up 'SRC' based on the files mentioned in SOURCES
|
||||||
SRC := $(shell cat $(SPEEXSRC)/SOURCES | $(CC) $(CFLAGS) -E -P - | grep -v "^\#")
|
SRC := $(shell cat $(SPEEXSRC)/SOURCES | $(CC) $(CFLAGS) -E -P - | grep -v "^\#")
|
||||||
|
|
||||||
|
|
@ -45,7 +50,7 @@ $(DEPFILE): $(SOURCES)
|
||||||
echo "oo" > /dev/null )
|
echo "oo" > /dev/null )
|
||||||
|
|
||||||
../rbspeexenc: $(OBJS) $(DEPFILE)
|
../rbspeexenc: $(OBJS) $(DEPFILE)
|
||||||
$(CC) -o ../rbspeexenc $(OBJS) -lm
|
$(CC) $(CFLAGS) -o ../rbspeexenc $(OBJS) -lm
|
||||||
|
|
||||||
%.o:
|
%.o:
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue