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