FS#8961 - Anti-Aliased Fonts.
[kugel-rb.git] / apps / codecs / libmusepack / libmusepack.make
blobe975f002e4cd87c34973f019911394aa4f47943b
1 # __________ __ ___.
2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6 # \/ \/ \/ \/ \/
7 # $Id$
10 # libmusepack
11 MUSEPACKLIB := $(CODECDIR)/libmusepack.a
12 MUSEPACKLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libmusepack/SOURCES)
13 MUSEPACKLIB_OBJ := $(call c2obj, $(MUSEPACKLIB_SRC))
14 OTHER_SRC += $(MUSEPACKLIB_SRC)
16 $(MUSEPACKLIB): $(MUSEPACKLIB_OBJ)
17 $(SILENT)$(shell rm -f $@)
18 $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
20 # libmusepack is faster on ARM-targets with -O1 than -O2
21 MUSEPACKFLAGS = $(filter-out -O%,$(CODECFLAGS)) -I$(APPSDIR)/codecs/libmusepack
22 ifeq ($(CPU),arm)
23 MUSEPACKFLAGS += -O1
24 else
25 MUSEPACKFLAGS += -O2
26 endif
28 $(CODECDIR)/libmusepack/%.o: $(ROOTDIR)/apps/codecs/libmusepack/%.c
29 $(SILENT)mkdir -p $(dir $@)
30 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(MUSEPACKFLAGS) -c $< -o $@