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
commit9de0ae65101269afdf8ea44775e6d2f2cef887b4 (patch)
treec48e459860da85b325f3807a5ab51c264787a15c /port/wcwidth/Makefile
parentAdd Markus Kuhn's wcwidth implementation (diff)
downloadsrc-9de0ae65101269afdf8ea44775e6d2f2cef887b4.tar.gz
src-9de0ae65101269afdf8ea44775e6d2f2cef887b4.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