2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
11 DEMACLIB
:= $(CODECDIR
)/libdemac.a
12 DEMACLIB_SRC
:= $(call preprocess
, $(APPSDIR
)/codecs
/demac
/libdemac
/SOURCES
)
13 DEMACLIB_OBJ
:= $(call c2obj
, $(DEMACLIB_SRC
))
14 OTHER_SRC
+= $(DEMACLIB_SRC
)
16 $(DEMACLIB
): $(DEMACLIB_OBJ
)
17 $(SILENT
)$(shell rm -f
$@
)
18 $(call PRINTS
,AR
$(@F
))$(AR
) rcs
$@
$^
>/dev
/null
20 DEMACFLAGS
= $(filter-out -O
%,$(CODECFLAGS
))
23 $(CODECDIR
)/demac
/%.o
: $(ROOTDIR
)/apps
/codecs
/demac
/%.c
24 $(SILENT
)mkdir
-p
$(dir $@
)
25 $(call PRINTS
,CC
$(subst $(ROOTDIR
)/,,$<))$(CC
) $(DEMACFLAGS
) -c
$< -o
$@