diff options
| author | Dave Chapman <dave@dchapman.com> | 2007-11-17 16:54:54 +0000 |
|---|---|---|
| committer | Dave Chapman <dave@dchapman.com> | 2007-11-17 16:54:54 +0000 |
| commit | a8993baeb4affc0856b1683bfaead4b929a8f460 (patch) | |
| tree | c95aedbacbcdf8c43eb2cc792669c62996bc20c2 /tools | |
| parent | e39fc28fdcfcd877d714d4690f062023eb8b61c1 (diff) | |
| download | rockbox-a8993baeb4affc0856b1683bfaead4b929a8f460.zip rockbox-a8993baeb4affc0856b1683bfaead4b929a8f460.tar.gz rockbox-a8993baeb4affc0856b1683bfaead4b929a8f460.tar.bz2 rockbox-a8993baeb4affc0856b1683bfaead4b929a8f460.tar.xz | |
Create a libspeex.a as part of the compilation process - the intention is that this can then be used by other tools (namely rbutilqt) to directly encode rockbox-compatible speex files. Also make the building slightly less verbose.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15654 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/rbspeex/Makefile | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/tools/rbspeex/Makefile b/tools/rbspeex/Makefile index d5183cb..2e8a692 100644 --- a/tools/rbspeex/Makefile +++ b/tools/rbspeex/Makefile @@ -27,7 +27,7 @@ endif SRC := $(shell cat $(SPEEXSRC)/SOURCES | $(CC) $(CFLAGS) -E -P - | grep -v "^\#") SOURCES = $(SRC:%.c=$(SPEEXSRC)/%.c) rbspeexenc.c -OBJS := $(SRC:%.c=%.o) rbspeexenc.o +OBJS := $(SRC:%.c=%.o) DEPFILE = dep-speex DIRS = @@ -49,13 +49,19 @@ $(DEPFILE): $(SOURCES) done > $(DEPFILE); \ echo "oo" > /dev/null ) -../rbspeexenc: $(OBJS) $(DEPFILE) - $(CC) $(CFLAGS) -o ../rbspeexenc $(OBJS) -lm +libspeex.a: $(OBJS) $(DEPFILE) + @echo AR libspeex.a + $(SILENT)$(AR) ruv $@ $+ > /dev/null 2>&1 + +../rbspeexenc: $(OBJS) libspeex.a rbspeexenc.o + @echo Linking ../rbspeexenc + $(SILENT)$(CC) $(CFLAGS) -o ../rbspeexenc rbspeexenc.o libspeex.a -lm %.o: - $(CC) $(CFLAGS) -c $< -o $@ + @echo CC $< + $(SILENT)$(CC) $(CFLAGS) -c $< -o $@ clean: - rm -f $(OBJS) ../rbspeexenc dep-speex + rm -f $(OBJS) libspeex.a rbspeexenc.o ../rbspeexenc dep-speex -include $(DEPFILE) |