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..5783c4e8
--- /dev/null
+++ b/mk/_setjmp.d
@@ -0,0 +1,9 @@
+libc_X.400: 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