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