Compile librm separately in preparation for addition of more codecs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22028 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7c4e65bc27
commit
8f572ca525
4 changed files with 28 additions and 2 deletions
|
@ -34,6 +34,7 @@ include $(APPSDIR)/codecs/libtremor/libtremor.make
|
|||
include $(APPSDIR)/codecs/libwavpack/libwavpack.make
|
||||
include $(APPSDIR)/codecs/libwma/libwma.make
|
||||
include $(APPSDIR)/codecs/libcook/libcook.make
|
||||
include $(APPSDIR)/codecs/librm/librm.make
|
||||
|
||||
# compile flags for codecs
|
||||
CODECFLAGS = $(CFLAGS) -I$(APPSDIR)/codecs -I$(APPSDIR)/codecs/lib \
|
||||
|
@ -74,7 +75,7 @@ $(CODECDIR)/ape.codec : $(CODECDIR)/libdemac.a
|
|||
$(CODECDIR)/wma.codec : $(CODECDIR)/libwma.a
|
||||
$(CODECDIR)/wavpack_enc.codec: $(CODECDIR)/libwavpack.a
|
||||
$(CODECDIR)/asap.codec : $(CODECDIR)/libasap.a
|
||||
$(CODECDIR)/cook.codec : $(CODECDIR)/libcook.a
|
||||
$(CODECDIR)/cook.codec : $(CODECDIR)/libcook.a $(CODECDIR)/librm.a
|
||||
|
||||
$(CODECS): $(CODECLIB) # this must be last in codec dependency list
|
||||
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
cook.c
|
||||
bitstream.c
|
||||
../librm/rm.c
|
||||
|
|
1
apps/codecs/librm/SOURCES
Normal file
1
apps/codecs/librm/SOURCES
Normal file
|
@ -0,0 +1 @@
|
|||
rm.c
|
25
apps/codecs/librm/librm.make
Normal file
25
apps/codecs/librm/librm.make
Normal file
|
@ -0,0 +1,25 @@
|
|||
# __________ __ ___.
|
||||
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||
# \/ \/ \/ \/ \/
|
||||
# $Id: librm.make 20151 2009-03-01 09:04:15Z amiconn $
|
||||
#
|
||||
|
||||
# librm
|
||||
RMLIB := $(CODECDIR)/librm.a
|
||||
RMLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/librm/SOURCES)
|
||||
RMLIB_OBJ := $(call c2obj, $(RMLIB_SRC))
|
||||
OTHER_SRC += $(RMLIB_SRC)
|
||||
|
||||
$(RMLIB): $(RMLIB_OBJ)
|
||||
$(SILENT)$(shell rm -f $@)
|
||||
$(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
|
||||
|
||||
RMFLAGS = $(filter-out -O%,$(CODECFLAGS))
|
||||
RMFLAGS += -O3
|
||||
|
||||
$(CODECDIR)/librm/%.o: $(ROOTDIR)/apps/codecs/librm/%.c
|
||||
$(SILENT)mkdir -p $(dir $@)
|
||||
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(RMFLAGS) -c $< -o $@
|
Loading…
Reference in a new issue