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