diff options
author | Dominik Wenger <domonoky@googlemail.com> | 2007-12-14 16:04:38 +0000 |
---|---|---|
committer | Dominik Wenger <domonoky@googlemail.com> | 2007-12-14 16:04:38 +0000 |
commit | ed047d9db1dcee92afb8fe6bacb5d90ccb39481e (patch) | |
tree | 163bfbbf5316f4e92315c726516515eb4f04a120 /tools/rbspeex/Makefile | |
parent | b2f7c61f84191d3d15606400165efe931bb66d2a (diff) | |
download | rockbox-ed047d9db1dcee92afb8fe6bacb5d90ccb39481e.tar.gz rockbox-ed047d9db1dcee92afb8fe6bacb5d90ccb39481e.tar.bz2 rockbox-ed047d9db1dcee92afb8fe6bacb5d90ccb39481e.zip |
refactor rbspeex, so we build a librbspeex.a for linking into rbutil.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15924 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/rbspeex/Makefile')
-rw-r--r-- | tools/rbspeex/Makefile | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/tools/rbspeex/Makefile b/tools/rbspeex/Makefile index f6e70def96..a2b6725f5d 100644 --- a/tools/rbspeex/Makefile +++ b/tools/rbspeex/Makefile @@ -26,7 +26,7 @@ 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 rbspeexdec.c +SOURCES = $(SRC:%.c=$(SPEEXSRC)/%.c) rbspeex.c rbspeexenc.c rbspeexdec.c OBJS := $(SRC:%.c=%.o) DEPFILE = dep-speex DIRS = @@ -49,23 +49,24 @@ $(DEPFILE): $(SOURCES) done > $(DEPFILE); \ echo "oo" > /dev/null ) -libspeex.a: $(OBJS) $(DEPFILE) - @echo AR libspeex.a - $(SILENT)$(AR) ruv $@ $+ > /dev/null 2>&1 +librbspeex.a: $(OBJS) $(DEPFILE) rbspeex.o + @echo AR librbspeex.a + $(AR) ruv $@ $+ > /dev/null 2>&1 -../rbspeexenc: $(OBJS) libspeex.a rbspeexenc.o +../rbspeexenc: $(OBJS) rbspeexenc.o librbspeex.a @echo Linking ../rbspeexenc - $(SILENT)$(CC) $(CFLAGS) -o ../rbspeexenc rbspeexenc.o libspeex.a -lm + $(SILENT)$(CC) $(CFLAGS) -o ../rbspeexenc rbspeexenc.o librbspeex.a -lm -../rbspeexdec: $(OBJS) libspeex.a rbspeexdec.o +../rbspeexdec: $(OBJS) librbspeex.a rbspeexdec.o @echo Linking ../rbspeexdec - $(SILENT)$(CC) $(CFLAGS) -o ../rbspeexdec rbspeexdec.o libspeex.a -lm + $(SILENT)$(CC) $(CFLAGS) -o ../rbspeexdec rbspeexdec.o librbspeex.a -lm %.o: @echo CC $< $(SILENT)$(CC) $(CFLAGS) -c $< -o $@ + clean: - rm -f $(OBJS) libspeex.a rbspeexenc.o ../rbspeexenc dep-speex + rm -f $(OBJS) libspeex.a librbspeex.a rbspeexenc.o ../rbspeexenc dep-speex -include $(DEPFILE) |