summaryrefslogtreecommitdiff
path: root/mk/longjmp.d
diff options
context:
space:
mode:
Diffstat (limited to 'mk/longjmp.d')
-rw-r--r--mk/longjmp.d9
1 files changed, 9 insertions, 0 deletions
diff --git a/mk/longjmp.d b/mk/longjmp.d
new file mode 100644
index 00000000..3329ab11
--- /dev/null
+++ b/mk/longjmp.d
@@ -0,0 +1,9 @@
+libc_C.1: libc.a(longjmp.o)
+libc.a(longjmp.o): $(OBJDIR)/longjmp.o
+ @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$%
+
+$(OBJDIR)/longjmp.o: src/setjmp/longjmp.c
+$(OBJDIR)/longjmp.o:
+ @echo " [CC] $@"
+ @mkdir -p $(@D)
+ @$(CC) -c -o $@ $(CFLAGS) src/setjmp/longjmp.c