2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
11 TTALIB
:= $(CODECDIR
)/libtta.a
12 TTALIB_SRC
:= $(call preprocess
, $(APPSDIR
)/codecs
/libtta
/SOURCES
)
13 TTALIB_OBJ
:= $(call c2obj
, $(TTALIB_SRC
))
14 OTHER_SRC
+= $(TTALIB_SRC
)
16 $(TTALIB
): $(TTALIB_OBJ
)
17 $(SILENT
)$(shell rm -f
$@
)
18 $(call PRINTS
,AR
$(@F
))$(AR
) rcs
$@
$^
>/dev
/null
20 TTAFLAGS
= $(filter-out -O
%,$(CODECFLAGS
))
22 ifeq ($(CPU
),coldfire
)
28 $(CODECDIR
)/libtta
/%.o
: $(ROOTDIR
)/apps
/codecs
/libtta
/%.c
29 $(SILENT
)mkdir
-p
$(dir $@
)
30 $(call PRINTS
,CC
$(subst $(ROOTDIR
)/,,$<))$(CC
) $(TTAFLAGS
) -c
$< -o
$@
32 $(CODECDIR
)/libtta
/%.o
: $(ROOTDIR
)/apps
/codecs
/libtta
/%.S
33 $(SILENT
)mkdir
-p
$(dir $@
)
34 $(call PRINTS
,CC
$(subst $(ROOTDIR
)/,,$<))$(CC
) $(TTAFLAGS
) -c
$< -o
$@