1
0
Fork 0
forked from len0rd/rockbox

Add rbspeexdec, decoder for the Rockbox voice clips. Also nitpick a bit on rbspeexenc while I'm at it.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15842 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thom Johansen 2007-11-28 13:42:44 +00:00
parent c1b718403a
commit df0df311dc
3 changed files with 133 additions and 4 deletions

View file

@ -26,14 +26,14 @@ endif
# This sets up 'SRC' based on the files mentioned in SOURCES
SRC := $(shell cat $(SPEEXSRC)/SOURCES | $(CC) $(CFLAGS) -E -P - | grep -v "^\#")
SOURCES = $(SRC:%.c=$(SPEEXSRC)/%.c) rbspeexenc.c
SOURCES = $(SRC:%.c=$(SPEEXSRC)/%.c) rbspeexenc.c rbspeexdec.c
OBJS := $(SRC:%.c=%.o)
DEPFILE = dep-speex
DIRS =
.PHONY : all
all: ../rbspeexenc
all: ../rbspeexenc ../rbspeexdec
$(DEPFILE): $(SOURCES)
$(SILENT)rm -f $(DEPFILE)
@ -57,6 +57,10 @@ libspeex.a: $(OBJS) $(DEPFILE)
@echo Linking ../rbspeexenc
$(SILENT)$(CC) $(CFLAGS) -o ../rbspeexenc rbspeexenc.o libspeex.a -lm
../rbspeexdec: $(OBJS) libspeex.a rbspeexdec.o
@echo Linking ../rbspeexdec
$(SILENT)$(CC) $(CFLAGS) -o ../rbspeexdec rbspeexdec.o libspeex.a -lm
%.o:
@echo CC $<
$(SILENT)$(CC) $(CFLAGS) -c $< -o $@