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/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