summary refs log tree commit diff
path: root/port/wcwidth/Makefile
blob: 4fbb286353a508d3a284bcd58dfb7bd9b5dcfe98 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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}