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