Use CACHEALIGN_BITS to calculate CACHEALIGN_SIZE instead of directly setting it.
[maemo-rb.git] / apps / codecs / libwmavoice / libwmavoice.make
blob0497e18e1ba831e431923ea38bbf4f456ce82e53
1 # __________ __ ___.
2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6 # \/ \/ \/ \/ \/
7 # $Id: libwmavoice.make 27586 2010-07-27 06:48:15Z nls $
10 # libwmavoice
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)
23 WMAVOICEFLAGS += -O2
24 else
25 WMAVOICEFLAGS += -O1
26 endif
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 \
32 $(filter %.o, $^) \
33 $(filter %.a, $+) \
34 -lgcc -lm $(CODECLDFLAGS)
35 $(SILENT)cp $(CODECDIR)/wmavoice.elf $@
36 endif