summary refs log tree commit diff
path: root/port/wcwidth/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'port/wcwidth/Makefile')
-rw-r--r--port/wcwidth/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/port/wcwidth/Makefile b/port/wcwidth/Makefile
new file mode 100644
index 00000000..4fbb2863
--- /dev/null
+++ b/port/wcwidth/Makefile
@@ -0,0 +1,16 @@
+PREFIX = ~/.local
+
+CFLAGS = -Dmk_wcwidth=wcwidth -Dmk_wcswidth=wcswidth
+
+OBJS = wcwidth.o
+DYLIB = libwcwidth.dylib
+
+${DYLIB}: ${OBJS}
+	${CC} -dynamiclib ${LDFLAGS} ${OBJS} -o $@
+
+install: ${DYLIB}
+	install -d ${PREFIX}/lib
+	install -m 644 ${DYLIB} ${PREFIX}/lib
+
+uninstall:
+	rm -f ${PREFIX}/lib/${DYLIB}