summaryrefslogtreecommitdiff
path: root/lib/rbcodec/codecs/libwmavoice/libwmavoice.make
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbcodec/codecs/libwmavoice/libwmavoice.make')
-rw-r--r--lib/rbcodec/codecs/libwmavoice/libwmavoice.make37
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/rbcodec/codecs/libwmavoice/libwmavoice.make b/lib/rbcodec/codecs/libwmavoice/libwmavoice.make
new file mode 100644
index 0000000000..609e5612f8
--- /dev/null
+++ b/lib/rbcodec/codecs/libwmavoice/libwmavoice.make
@@ -0,0 +1,37 @@
1# __________ __ ___.
2# Open \______ \ ____ ____ | | _\_ |__ _______ ___
3# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6# \/ \/ \/ \/ \/
7# $Id: libwmavoice.make 27586 2010-07-27 06:48:15Z nls $
8#
9
10# libwmavoice
11WMAVOICELIB := $(CODECDIR)/libwmavoice.a
12WMAVOICELIB_SRC := $(call preprocess, $(RBCODECLIB_DIR)/codecs/libwmavoice/SOURCES)
13WMAVOICELIB_OBJ := $(call c2obj, $(WMAVOICELIB_SRC))
14OTHER_SRC += $(WMAVOICELIB_SRC)
15
16$(WMAVOICELIB): $(WMAVOICELIB_OBJ)
17 $(SILENT)$(shell rm -f $@)
18 $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
19
20WMAVOICEFLAGS = -I$(RBCODECLIB_DIR)/codecs/libwmavoice $(filter-out -O%,$(CODECFLAGS))
21
22ifeq ($(ARCH),arch_m68k)
23 WMAVOICEFLAGS += -O2
24else
25 WMAVOICEFLAGS += -O1
26endif
27
28ifeq ($(APP_TYPE),sdl-sim)
29# wmavoice needs libm in the simulator
30$(CODECDIR)/wmavoice.codec: $(CODECDIR)/wmavoice.o
31 $(call PRINTS,LD $(@F))$(CC) $(CODECFLAGS) -o $(CODECDIR)/wmavoice.elf \
32 $(filter %.o, $^) \
33 $(filter %.a, $+) \
34 -lgcc -lm $(CODECLDFLAGS)
35 $(SILENT)cp $(CODECDIR)/wmavoice.elf $@
36endif
37