1 c902213d 2022-10-29 thomas .PATH:${.CURDIR}/../lib ${.CURDIR}/../gotd
3 c902213d 2022-10-29 thomas .include "../got-version.mk"
5 c902213d 2022-10-29 thomas PROG= gotctl
6 232c0ac1 2023-04-22 thomas SRCS= gotctl.c error.c imsg.c object_qid.c path.c \
7 be288a59 2023-02-23 thomas pollfd.c hash.c
9 c902213d 2022-10-29 thomas MAN = ${PROG}.8
11 c902213d 2022-10-29 thomas CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib -I${.CURDIR}/../gotd
13 c902213d 2022-10-29 thomas .if defined(PROFILE)
14 95a3dfcf 2023-04-22 thomas LDADD = -lutil_p -levent_p
16 95a3dfcf 2023-04-22 thomas LDADD = -lutil -levent
18 e6f7f176 2023-04-22 thomas DPADD = ${LIBUTIL} ${LIBEVENT}
20 c902213d 2022-10-29 thomas .if ${GOT_RELEASE} != "Yes"
21 c902213d 2022-10-29 thomas NOMAN = Yes
23 c902213d 2022-10-29 thomas BINDIR = ${PREFIX}/sbin
26 c902213d 2022-10-29 thomas realinstall:
27 c902213d 2022-10-29 thomas ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} \
28 c902213d 2022-10-29 thomas -m ${BINMODE} ${PROG} ${BINDIR}/${PROG}
30 c902213d 2022-10-29 thomas .include <bsd.prog.mk>