summary refs log tree commit diff
path: root/port/wcwidth/Makefile
blob: f6932d6d44ec9928dd9a7c4fcd0ab287690bf5a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
PREFIX = ~/.local

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

uninstall:
	rm -f ${PREFIX}/lib/${DYLIB}