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