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