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 01a217a7 2023-02-07 thomas SRCS= gotctl.c error.c imsg.c inflate.c object_parse.c path.c \
7 be288a59 2023-02-23 thomas pollfd.c hash.c
8 c902213d 2022-10-29 thomas
9 c902213d 2022-10-29 thomas MAN = ${PROG}.8
10 c902213d 2022-10-29 thomas
11 c902213d 2022-10-29 thomas CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib -I${.CURDIR}/../gotd
12 c902213d 2022-10-29 thomas
13 c902213d 2022-10-29 thomas .if defined(PROFILE)
14 c902213d 2022-10-29 thomas LDADD = -lutil_p -lz_p -lm_p -lc_p -levent_p
15 c902213d 2022-10-29 thomas .else
16 c902213d 2022-10-29 thomas LDADD = -lutil -lz -lm -levent
17 c902213d 2022-10-29 thomas .endif
18 c902213d 2022-10-29 thomas DPADD = ${LIBZ} ${LIBUTIL}
19 c902213d 2022-10-29 thomas
20 c902213d 2022-10-29 thomas .if ${GOT_RELEASE} != "Yes"
21 c902213d 2022-10-29 thomas NOMAN = Yes
22 c902213d 2022-10-29 thomas .else
23 c902213d 2022-10-29 thomas BINDIR = ${PREFIX}/sbin
24 c902213d 2022-10-29 thomas .endif
25 c902213d 2022-10-29 thomas
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}
29 c902213d 2022-10-29 thomas
30 c902213d 2022-10-29 thomas .include <bsd.prog.mk>