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