summaryrefslogtreecommitdiffstats
path: root/lib/libsetjmp/libsetjmp.make
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-08-24 12:38:42 +0000
committerThomas Martitz <kugel@rockbox.org>2010-08-24 12:38:42 +0000
commit46454ac2a8a7d693ac135f0d4a9461bbcf24eea9 (patch)
tree86488784b36537f382ccd448c6684d60f1540527 /lib/libsetjmp/libsetjmp.make
parent20de4c55a2ddfa802a01cc353884d73a934bf7ba (diff)
downloadrockbox-46454ac2a8a7d693ac135f0d4a9461bbcf24eea9.tar.gz
rockbox-46454ac2a8a7d693ac135f0d4a9461bbcf24eea9.tar.bz2
rockbox-46454ac2a8a7d693ac135f0d4a9461bbcf24eea9.zip
Move setjmp to lib and add setjmp for sh (imported from newlib) and compile it as separate library.
It's used by both, plugins and codecs, and sh/hwcodec doesn't compile codecs so it doesn't fit into sources. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27869 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'lib/libsetjmp/libsetjmp.make')
-rw-r--r--lib/libsetjmp/libsetjmp.make21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/libsetjmp/libsetjmp.make b/lib/libsetjmp/libsetjmp.make
new file mode 100644
index 0000000000..b7d4cad25f
--- /dev/null
+++ b/lib/libsetjmp/libsetjmp.make
@@ -0,0 +1,21 @@
+# __________ __ ___.
+# Open \______ \ ____ ____ | | _\_ |__ _______ ___
+# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+# \/ \/ \/ \/ \/
+#
+
+SETJMP_DIR = $(ROOTDIR)/lib/libsetjmp
+SETJMP_SRC = $(call preprocess, $(SETJMP_DIR)/SOURCES)
+SETJMP_OBJ := $(call c2obj, $(SETJMP_SRC))
+
+OTHER_SRC += $(SETJMP_SRC)
+
+LIBSETJMP = $(BUILDDIR)/lib/libsetjmp.a
+
+INCLUDES += -I$(SETJMP_DIR)
+
+$(LIBSETJMP): $(SETJMP_OBJ)
+ $(SILENT)$(shell rm -f $@)
+ $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null