Added 'keywords' and 'eol-style' properties.
[kugel-rb.git] / apps / codecs / libtremor / libtremor.make
bloba085327d4fdfb5ed1e55c4d0622061118f9ddb37
1 # __________ __ ___.
2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6 # \/ \/ \/ \/ \/
7 # $Id$
10 # libtremor
11 TREMORLIB := $(CODECDIR)/libtremor.a
12 TREMORLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libtremor/SOURCES)
13 TREMORLIB_OBJ := $(call c2obj, $(TREMORLIB_SRC))
14 OTHER_SRC += $(TREMORLIB_SRC)
16 $(TREMORLIB): $(TREMORLIB_OBJ)
17 $(SILENT)$(shell rm -f $@)
18 $(call PRINTS,AR $(@F))$(AR) rs $@ $^ >/dev/null 2>&1
20 $(CODECDIR)/libtremor/%.o: $(ROOTDIR)/apps/codecs/libtremor/%.c
21 $(SILENT)mkdir -p $(dir $@)
22 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) \
23 -I$(APPSDIR)/codecs/libtremor \
24 $(CODECFLAGS) $(CFLAGS) -c $< -o $@
26 TREMORFLAGS = -I$(APPSDIR)/codecs/libtremor $(filter-out -O%,$(CODECFLAGS))
28 # Tremor is slightly faster on coldfire with -O3
29 ifeq ($(CPU),coldfire)
30 TREMORFLAGS += -O3
31 else
32 TREMORFLAGS += -O2
33 endif
35 $(CODECDIR)/libtremor/%.o: $(ROOTDIR)/apps/codecs/libtremor/%.c
36 $(SILENT)mkdir -p $(dir $@)
37 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(TREMORFLAGS) -c $< -o $@