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