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