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