RaaA: Improve tagcache search to make the database built.
[maemo-rb.git] / apps / codecs / libtta / libtta.make
blobb18d013cbf3932b712f51ff9102c0af376e60b6c
1 # __________ __ ___.
2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6 # \/ \/ \/ \/ \/
7 # $Id$
10 # libtta
11 TTALIB := $(CODECDIR)/libtta.a
12 TTALIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libtta/SOURCES)
13 TTALIB_OBJ := $(call c2obj, $(TTALIB_SRC))
14 OTHER_SRC += $(TTALIB_SRC)
16 $(TTALIB): $(TTALIB_OBJ)
17 $(SILENT)$(shell rm -f $@)
18 $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
20 TTAFLAGS = $(filter-out -O%,$(CODECFLAGS))
22 ifeq ($(CPU),coldfire)
23 TTAFLAGS += -O3
24 else
25 TTAFLAGS += -O2
26 endif
28 $(CODECDIR)/libtta/%.o: $(ROOTDIR)/apps/codecs/libtta/%.c
29 $(SILENT)mkdir -p $(dir $@)
30 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(TTAFLAGS) -c $< -o $@
32 $(CODECDIR)/libtta/%.o: $(ROOTDIR)/apps/codecs/libtta/%.S
33 $(SILENT)mkdir -p $(dir $@)
34 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(TTAFLAGS) -c $< -o $@