Blame


1 c902213d 2022-10-29 thomas .PATH:${.CURDIR}/../lib ${.CURDIR}/../gotd
2 c902213d 2022-10-29 thomas
3 c902213d 2022-10-29 thomas .include "../got-version.mk"
4 c902213d 2022-10-29 thomas
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
7 c902213d 2022-10-29 thomas
8 c902213d 2022-10-29 thomas MAN = ${PROG}.8
9 c902213d 2022-10-29 thomas
10 c902213d 2022-10-29 thomas CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib -I${.CURDIR}/../gotd
11 c902213d 2022-10-29 thomas
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
14 c902213d 2022-10-29 thomas .else
15 c902213d 2022-10-29 thomas LDADD = -lutil -lz -lm -levent
16 c902213d 2022-10-29 thomas .endif
17 c902213d 2022-10-29 thomas DPADD = ${LIBZ} ${LIBUTIL}
18 c902213d 2022-10-29 thomas
19 c902213d 2022-10-29 thomas .if ${GOT_RELEASE} != "Yes"
20 c902213d 2022-10-29 thomas NOMAN = Yes
21 c902213d 2022-10-29 thomas .else
22 c902213d 2022-10-29 thomas BINDIR = ${PREFIX}/sbin
23 c902213d 2022-10-29 thomas .endif
24 c902213d 2022-10-29 thomas
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}
28 c902213d 2022-10-29 thomas
29 c902213d 2022-10-29 thomas .include <bsd.prog.mk>