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:
parent
c1b718403a
commit
df0df311dc
3 changed files with 133 additions and 4 deletions
|
|
@ -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 $@
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue