summaryrefslogtreecommitdiff
path: root/apps/codecs/librm/librm.make
diff options
context:
space:
mode:
authorMohamed Tarek <mt@rockbox.org>2009-07-25 15:13:50 +0000
committerMohamed Tarek <mt@rockbox.org>2009-07-25 15:13:50 +0000
commit8f572ca525bf3812799e627a4a716300e412c244 (patch)
treeb82f70973b43dc25c113a2bcb4e72b5d0362a6d6 /apps/codecs/librm/librm.make
parent7c4e65bc27db18b9cb150c4159b7aca979f400f2 (diff)
Compile librm separately in preparation for addition of more codecs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22028 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/librm/librm.make')
-rw-r--r--apps/codecs/librm/librm.make25
1 files changed, 25 insertions, 0 deletions
diff --git a/apps/codecs/librm/librm.make b/apps/codecs/librm/librm.make
new file mode 100644
index 0000000000..99d89cdab7
--- /dev/null
+++ b/apps/codecs/librm/librm.make
@@ -0,0 +1,25 @@
+# __________ __ ___.
+# Open \______ \ ____ ____ | | _\_ |__ _______ ___
+# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+# \/ \/ \/ \/ \/
+# $Id: librm.make 20151 2009-03-01 09:04:15Z amiconn $
+#
+
+# librm
+RMLIB := $(CODECDIR)/librm.a
+RMLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/librm/SOURCES)
+RMLIB_OBJ := $(call c2obj, $(RMLIB_SRC))
+OTHER_SRC += $(RMLIB_SRC)
+
+$(RMLIB): $(RMLIB_OBJ)
+ $(SILENT)$(shell rm -f $@)
+ $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
+
+RMFLAGS = $(filter-out -O%,$(CODECFLAGS))
+RMFLAGS += -O3
+
+$(CODECDIR)/librm/%.o: $(ROOTDIR)/apps/codecs/librm/%.c
+ $(SILENT)mkdir -p $(dir $@)
+ $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(RMFLAGS) -c $< -o $@