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 c902213d 2022-10-29 thomas SRCS= gotctl.c error.c imsg.c pollfd.c sha1.c
8 c902213d 2022-10-29 thomas MAN = ${PROG}.8
10 c902213d 2022-10-29 thomas CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib -I${.CURDIR}/../gotd
12 c902213d 2022-10-29 thomas .if defined(PROFILE)
13 c902213d 2022-10-29 thomas LDADD = -lutil_p -lz_p -lm_p -lc_p -levent_p
15 c902213d 2022-10-29 thomas LDADD = -lutil -lz -lm -levent
17 c902213d 2022-10-29 thomas DPADD = ${LIBZ} ${LIBUTIL}
19 c902213d 2022-10-29 thomas .if ${GOT_RELEASE} != "Yes"
20 c902213d 2022-10-29 thomas NOMAN = Yes
22 c902213d 2022-10-29 thomas BINDIR = ${PREFIX}/sbin
25 c902213d 2022-10-29 thomas realinstall:
26 c902213d 2022-10-29 thomas ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} \
27 c902213d 2022-10-29 thomas -m ${BINMODE} ${PROG} ${BINDIR}/${PROG}
29 c902213d 2022-10-29 thomas .include <bsd.prog.mk>