rockbox/lib/rbcodec/codecs/libopus/libopus.make
Nils Wallménius b2e80edd16 Change CODECFLAGS to a "simply-expanded" var to give the individual
codec makefiles larger freedom in what they can do to it.
Use this in libopus to prepend the libopus searchpaths to
CODECFLAGS so that its internal config.h will be picked up before
our global one. This avoids having to do a s/config.h/opus_config.h/
when syncing which will be handy soon.

Change-Id: I018d729aa0c8300fa3149f22a5a8c5668b339dfa
Reviewed-on: http://gerrit.rockbox.org/496
Reviewed-by: Nils Wallménius <nils@rockbox.org>
2013-08-23 18:34:30 +02:00

25 lines
930 B
Makefile

# __________ __ ___.
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
# \/ \/ \/ \/ \/
# $Id$
#
# libopus
OPUSLIB := $(CODECDIR)/libopus.a
OPUSLIB_SRC := $(call preprocess, $(RBCODECLIB_DIR)/codecs/libopus/SOURCES)
OPUSLIB_OBJ := $(call c2obj, $(OPUSLIB_SRC))
# codec specific compilation flags
# prepend paths to avoid name clash issues
$(OPUSLIB) : CODECFLAGS := -DHAVE_CONFIG_H \
-I$(RBCODECLIB_DIR)/codecs/libopus \
-I$(RBCODECLIB_DIR)/codecs/libopus/celt \
-I$(RBCODECLIB_DIR)/codecs/libopus/silk \
$(CODECFLAGS)
$(OPUSLIB): $(OPUSLIB_OBJ)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null