forked from len0rd/rockbox
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
This commit is contained in:
parent
e39fc28fdc
commit
a8993baeb4
1 changed files with 11 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue