summaryrefslogtreecommitdiff
path: root/apps/codecs/lib/tlsf/libtlsf.make
diff options
context:
space:
mode:
authorMagnus Holmgren <magnushol@gmail.com>2009-08-29 12:23:40 +0000
committerMagnus Holmgren <magnushol@gmail.com>2009-08-29 12:23:40 +0000
commit3fad1523c78e13f61283d7b81e0990f8803dc2f2 (patch)
tree6cdbc97688e782d13cf0ee406ac8356a2ae98047 /apps/codecs/lib/tlsf/libtlsf.make
parent260ed991392a387ff9ae5bbd8dba7afd10c1faef (diff)
downloadrockbox-3fad1523c78e13f61283d7b81e0990f8803dc2f2.tar.gz
rockbox-3fad1523c78e13f61283d7b81e0990f8803dc2f2.zip
FS#10466: Introduce a real malloc for tremor.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22528 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/lib/tlsf/libtlsf.make')
-rw-r--r--apps/codecs/lib/tlsf/libtlsf.make28
1 files changed, 28 insertions, 0 deletions
diff --git a/apps/codecs/lib/tlsf/libtlsf.make b/apps/codecs/lib/tlsf/libtlsf.make
new file mode 100644
index 0000000000..464487f87f
--- /dev/null
+++ b/apps/codecs/lib/tlsf/libtlsf.make
@@ -0,0 +1,28 @@
1# __________ __ ___.
2# Open \______ \ ____ ____ | | _\_ |__ _______ ___
3# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6# \/ \/ \/ \/ \/
7# $Id$
8#
9
10TLSFLIB := $(CODECDIR)/libtlsf.a
11TLSFLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/lib/tlsf/SOURCES)
12TLSFLIB_OBJ := $(call c2obj, $(TLSFLIB_SRC))
13OTHER_SRC += $(TLSFLIB_SRC)
14
15$(TLSFLIB): $(TLSFLIB_OBJ)
16 $(SILENT)$(shell rm -f $@)
17 $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
18
19TLSFLIBFLAGS = $(CODECFLAGS) -ffunction-sections
20
21ifdef SIMVER
22 TLSFLIBFLAGS += -DTLSF_STATISTIC=1
23endif
24
25$(CODECDIR)/lib/tlsf/src/%.o: $(APPSDIR)/codecs/lib/tlsf/src/%.c
26 $(SILENT)mkdir -p $(dir $@)
27 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) \
28 -I$(dir $<) $(TLSFLIBFLAGS) -c $< -o $@