2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
11 TREMORLIB
:= $(CODECDIR
)/libtremor.a
12 TREMORLIB_SRC
:= $(call preprocess
, $(APPSDIR
)/codecs
/libtremor
/SOURCES
)
13 TREMORLIB_OBJ
:= $(call c2obj
, $(TREMORLIB_SRC
))
14 OTHER_SRC
+= $(TREMORLIB_SRC
)
16 $(TREMORLIB
): $(TREMORLIB_OBJ
)
17 $(SILENT
)$(shell rm -f
$@
)
18 $(call PRINTS
,AR
$(@F
))$(AR
) rcs
$@
$^
>/dev
/null
20 $(CODECDIR
)/libtremor
/%.o
: $(ROOTDIR
)/apps
/codecs
/libtremor
/%.c
21 $(SILENT
)mkdir
-p
$(dir $@
)
22 $(call PRINTS
,CC
$(subst $(ROOTDIR
)/,,$<))$(CC
) \
23 -I
$(APPSDIR
)/codecs
/libtremor \
24 $(CODECFLAGS
) $(CFLAGS
) -c
$< -o
$@
26 TREMORFLAGS
= -I
$(APPSDIR
)/codecs
/libtremor
$(filter-out -O
%,$(CODECFLAGS
))
28 # Tremor is slightly faster on coldfire with -O3
29 ifeq ($(CPU
),coldfire
)
35 $(CODECDIR
)/libtremor
/%.o
: $(ROOTDIR
)/apps
/codecs
/libtremor
/%.c
36 $(SILENT
)mkdir
-p
$(dir $@
)
37 $(call PRINTS
,CC
$(subst $(ROOTDIR
)/,,$<))$(CC
) $(TREMORFLAGS
) -c
$< -o
$@