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