From a8993baeb4affc0856b1683bfaead4b929a8f460 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Sat, 17 Nov 2007 16:54:54 +0000 Subject: 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 --- tools/rbspeex/Makefile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'tools/rbspeex/Makefile') diff --git a/tools/rbspeex/Makefile b/tools/rbspeex/Makefile index d5183cb50a..2e8a692c3d 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) -- cgit