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