2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 CODECLIB
:= $(CODECDIR
)/libcodec.a
11 CODECLIB_SRC
:= $(call preprocess
, $(APPSDIR
)/codecs
/lib
/SOURCES
)
12 CODECLIB_OBJ
:= $(call c2obj
, $(CODECLIB_SRC
))
13 OTHER_SRC
+= $(CODECLIB_SRC
)
15 $(CODECLIB
): $(CODECLIB_OBJ
)
16 $(SILENT
)$(shell rm -f
$@
)
17 $(call PRINTS
,AR
$(@F
))$(AR
) rcs
$@
$^
>/dev
/null
19 CODECLIBFLAGS
= $(CODECFLAGS
) -ffunction-sections
21 $(CODECDIR
)/lib
/%.o
: $(ROOTDIR
)/apps
/codecs
/lib
/%.c
22 $(SILENT
)mkdir
-p
$(dir $@
)
23 $(call PRINTS
,CC
$(subst $(ROOTDIR
)/,,$<))$(CC
) \
24 -I
$(dir $<) $(CODECLIBFLAGS
) -c
$< -o
$@