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