forked from len0rd/rockbox
Add codecs to librbcodec.
Change-Id: Id7f4717d51ed02d67cb9f9cb3c0ada4a81843f97 Reviewed-on: http://gerrit.rockbox.org/137 Reviewed-by: Nils Wallménius <nils@rockbox.org> Tested-by: Nils Wallménius <nils@rockbox.org>
This commit is contained in:
parent
a0009907de
commit
f40bfc9267
757 changed files with 122 additions and 122 deletions
37
lib/rbcodec/codecs/lib/libcodec.make
Normal file
37
lib/rbcodec/codecs/lib/libcodec.make
Normal file
|
@ -0,0 +1,37 @@
|
|||
# __________ __ ___.
|
||||
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||
# \/ \/ \/ \/ \/
|
||||
# $Id$
|
||||
#
|
||||
|
||||
CODECLIB := $(CODECDIR)/libcodec.a
|
||||
CODECLIB_SRC := $(call preprocess, $(RBCODECLIB_DIR)/codecs/lib/SOURCES)
|
||||
CODECLIB_OBJ := $(call c2obj, $(CODECLIB_SRC))
|
||||
OTHER_SRC += $(CODECLIB_SRC)
|
||||
|
||||
$(CODECLIB): $(CODECLIB_OBJ)
|
||||
$(SILENT)$(shell rm -f $@)
|
||||
$(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
|
||||
|
||||
CODECLIBFLAGS = $(filter-out -O%,$(CODECFLAGS))
|
||||
|
||||
ifeq ($(MEMORYSIZE),2)
|
||||
CODECLIBFLAGS += -Os
|
||||
else ifeq ($(ARCH),arch_m68k)
|
||||
CODECLIBFLAGS += -O2
|
||||
else
|
||||
CODECLIBFLAGS += -O1
|
||||
endif
|
||||
|
||||
# Do not use '-ffunction-sections' when compiling sdl-sim
|
||||
ifneq ($(findstring sdl-sim, $(APP_TYPE)), sdl-sim)
|
||||
CODECLIBFLAGS += -ffunction-sections
|
||||
endif
|
||||
|
||||
$(CODECDIR)/lib/%.o: $(RBCODECLIB_DIR)/codecs/lib/%.c
|
||||
$(SILENT)mkdir -p $(dir $@)
|
||||
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) \
|
||||
-I$(dir $<) $(CODECLIBFLAGS) -c $< -o $@
|
Loading…
Add table
Add a link
Reference in a new issue