2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
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
28 $(CODECDIR
)/libmusepack
/%.o
: $(ROOTDIR
)/apps
/codecs
/libmusepack
/%.c
29 $(SILENT
)mkdir
-p
$(dir $@
)
30 $(call PRINTS
,CC
$(subst $(ROOTDIR
)/,,$<))$(CC
) $(MUSEPACKFLAGS
) -c
$< -o
$@