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