2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 # $Id: libwmavoice.make 27586 2010-07-27 06:48:15Z nls $
11 WMAVOICELIB
:= $(CODECDIR
)/libwmavoice.a
12 WMAVOICELIB_SRC
:= $(call preprocess
, $(APPSDIR
)/codecs
/libwmavoice
/SOURCES
)
13 WMAVOICELIB_OBJ
:= $(call c2obj
, $(WMAVOICELIB_SRC
))
14 OTHER_SRC
+= $(WMAVOICELIB_SRC
)
16 $(WMAVOICELIB
): $(WMAVOICELIB_OBJ
)
17 $(SILENT
)$(shell rm -f
$@
)
18 $(call PRINTS
,AR
$(@F
))$(AR
) rcs
$@
$^
>/dev
/null
20 WMAVOICEFLAGS
= -I
$(APPSDIR
)/codecs
/libwmavoice
$(filter-out -O
%,$(CODECFLAGS
))
22 ifeq ($(CPU
),coldfire
)
28 ifeq ($(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 \
34 -lgcc
-lm
$(CODECLDFLAGS
)
35 $(SILENT
)cp
$(CODECDIR
)/wmavoice.elf
$@