2010-08-07 17:55:02 +00:00
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
|
|
|
# $Id: libwmavoice.make 27586 2010-07-27 06:48:15Z nls $
|
|
|
|
#
|
|
|
|
|
|
|
|
# libwmavoice
|
|
|
|
WMAVOICELIB := $(CODECDIR)/libwmavoice.a
|
2011-06-26 01:32:25 +00:00
|
|
|
WMAVOICELIB_SRC := $(call preprocess, $(RBCODECLIB_DIR)/codecs/libwmavoice/SOURCES)
|
2010-08-07 17:55:02 +00:00
|
|
|
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
|
|
|
|
|
2011-06-26 01:32:25 +00:00
|
|
|
WMAVOICEFLAGS = -I$(RBCODECLIB_DIR)/codecs/libwmavoice $(filter-out -O%,$(CODECFLAGS))
|
2010-08-07 17:55:02 +00:00
|
|
|
|
2012-03-28 20:57:13 +00:00
|
|
|
ifeq ($(ARCH),arch_m68k)
|
2010-08-07 17:55:02 +00:00
|
|
|
WMAVOICEFLAGS += -O2
|
|
|
|
else
|
|
|
|
WMAVOICEFLAGS += -O1
|
|
|
|
endif
|
|
|
|
|
|
|
|
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
|
|
|
|
|