summaryrefslogtreecommitdiffstats
path: root/lib/libsetjmp/libsetjmp.make
diff options
context:
space:
mode:
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