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