rockbox/lib/rbcodec/codecs/libwmavoice/libwmavoice.make
Solomon Peachy 6c2a7ddc74 build: Put all codec optiomization definitions in one place
It was already mostly there.

Change-Id: I24ff278d9bf18a54be4b67c3075d5ebbe7947f65
2018-12-25 14:17:29 -05:00

31 lines
1.1 KiB
Makefile

# __________ __ ___.
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
# \/ \/ \/ \/ \/
# $Id: libwmavoice.make 27586 2010-07-27 06:48:15Z nls $
#
# libwmavoice
WMAVOICELIB := $(CODECDIR)/libwmavoice.a
WMAVOICELIB_SRC := $(call preprocess, $(RBCODECLIB_DIR)/codecs/libwmavoice/SOURCES)
WMAVOICELIB_OBJ := $(call c2obj, $(WMAVOICELIB_SRC))
OTHER_SRC += $(WMAVOICELIB_SRC)
$(WMAVOICELIB): $(WMAVOICELIB_OBJ)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
WMAVOICEFLAGS = -I$(RBCODECLIB_DIR)/codecs/libwmavoice $(CODECFLAGS)
ifeq ($(APP_TYPE),sdl-sim)
# wmavoice needs libm in the simulator
$(CODECDIR)/wmavoice.codec: $(CODECDIR)/wmavoice.o
$(call PRINTS,LD $(@F))$(CC) $(CODECFLAGS) -o $(CODECDIR)/wmavoice.elf \
$(filter %.o, $^) \
$(filter %.a, $+) \
-lgcc -lm $(CODECLDFLAGS)
$(SILENT)cp $(CODECDIR)/wmavoice.elf $@
endif