portable: tog: add keyword.c
[got-portable.git] / gotctl / Makefile
blobb3688e05a41671c5424eccd960798be8f074df6f
1 .PATH:${.CURDIR}/../lib ${.CURDIR}/../gotd
3 .include "../got-version.mk"
5 PROG= gotctl
6 SRCS= gotctl.c error.c imsg.c object_qid.c path.c \
7 pollfd.c hash.c
9 MAN = ${PROG}.8
11 CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib -I${.CURDIR}/../gotd
13 .if defined(PROFILE)
14 LDADD = -lutil_p -levent_p
15 .else
16 LDADD = -lutil -levent
17 .endif
18 DPADD = ${LIBUTIL} ${LIBEVENT}
20 .if ${GOT_RELEASE} != "Yes"
21 NOMAN = Yes
22 .else
23 BINDIR = ${PREFIX}/sbin
24 .endif
26 realinstall:
27 ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} \
28 -m ${BINMODE} ${PROG} ${BINDIR}/${PROG}
30 .include <bsd.prog.mk>