summaryrefslogtreecommitdiffstats
path: root/tools/rbspeex/Makefile
diff options
context:
space:
mode:
authorThom Johansen <thomj@rockbox.org>2007-11-28 13:42:44 +0000
committerThom Johansen <thomj@rockbox.org>2007-11-28 13:42:44 +0000
commitdf0df311dc2545d8332b088ad281b1dfeaf0f3c8 (patch)
treebbd874bdd22a15a56befe5a6529df80e564cfb53 /tools/rbspeex/Makefile
parentc1b718403af42203b3eda3272a8850839849c091 (diff)
downloadrockbox-df0df311dc2545d8332b088ad281b1dfeaf0f3c8.tar.gz
rockbox-df0df311dc2545d8332b088ad281b1dfeaf0f3c8.tar.bz2
rockbox-df0df311dc2545d8332b088ad281b1dfeaf0f3c8.zip
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
Diffstat (limited to 'tools/rbspeex/Makefile')
-rw-r--r--tools/rbspeex/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/rbspeex/Makefile b/tools/rbspeex/Makefile
index 2e8a692c3d..f6e70def96 100644
--- a/tools/rbspeex/Makefile
+++ b/tools/rbspeex/Makefile
@@ -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 $@