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