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