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