summary refs log tree commit diff
path: root/port/wcwidth/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-25 13:01:33 -0400
committerJune McEnroe <june@causal.agency>2020-04-25 13:01:33 -0400
commita8b4624387f580759739aa064e3f489bf28afeae (patch)
tree084e13a3e46da74a96965dcee5fab9c6c9f500f7 /port/wcwidth/Makefile
parentAdd Markus Kuhn's wcwidth implementation (diff)
downloadsrc-a8b4624387f580759739aa064e3f489bf28afeae.tar.gz
src-a8b4624387f580759739aa064e3f489bf28afeae.zip
Replace wcwidth implementation with that of musl
Imported from musl 1.2.0 sources.
Diffstat (limited to '')
-rw-r--r--port/wcwidth/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/port/wcwidth/Makefile b/port/wcwidth/Makefile
index 4fbb2863..f6932d6d 100644
--- a/port/wcwidth/Makefile
+++ b/port/wcwidth/Makefile
@@ -1,13 +1,16 @@
 PREFIX = ~/.local
 
-CFLAGS = -Dmk_wcwidth=wcwidth -Dmk_wcswidth=wcswidth
-
-OBJS = wcwidth.o
+OBJS = wcwidth.o wcswidth.o
 DYLIB = libwcwidth.dylib
 
 ${DYLIB}: ${OBJS}
 	${CC} -dynamiclib ${LDFLAGS} ${OBJS} -o $@
 
+wcwidth.o: nonspacing.h wide.h
+
+clean:
+	rm -f ${DYLIB} ${OBJS}
+
 install: ${DYLIB}
 	install -d ${PREFIX}/lib
 	install -m 644 ${DYLIB} ${PREFIX}/lib