summaryrefslogtreecommitdiff
path: root/mk/wcswidth.d
diff options
context:
space:
mode:
Diffstat (limited to 'mk/wcswidth.d')
-rw-r--r--mk/wcswidth.d11
1 files changed, 11 insertions, 0 deletions
diff --git a/mk/wcswidth.d b/mk/wcswidth.d
new file mode 100644
index 00000000..384c3780
--- /dev/null
+++ b/mk/wcswidth.d
@@ -0,0 +1,11 @@
+libc_X.4: libc.a(wcswidth.o)
+libc.a(wcswidth.o): $(OBJDIR)/wcswidth.o
+ @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$%
+
+$(OBJDIR)/wcswidth.o: src/wchar/wcswidth.c
+$(OBJDIR)/wcswidth.o: src/wctype/wint_t.c
+$(OBJDIR)/wcswidth.o: src/wctype/wctrans_t.c
+$(OBJDIR)/wcswidth.o:
+ @echo " [CC] $@"
+ @mkdir -p $(@D)
+ @$(CC) -c -o $@ $(CFLAGS) src/wchar/wcswidth.c