FS#8961 - Anti-Aliased Fonts.
[kugel-rb/myfork.git] / apps / codecs / libtremor / libtremor.make
blob1bd1b20fb42f13a3b346798fc322a10f014412bb
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) rcs $@ $^ >/dev/null
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 $@