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