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