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