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