Blame


1 f1752522 2022-10-29 stsp .PATH:${.CURDIR}/../lib ${.CURDIR}/../gotd
2 f1752522 2022-10-29 stsp
3 f1752522 2022-10-29 stsp .include "../got-version.mk"
4 f1752522 2022-10-29 stsp
5 f1752522 2022-10-29 stsp PROG= gotctl
6 b0ac38bb 2023-02-06 mark SRCS= gotctl.c error.c imsg.c inflate.c object_parse.c path.c \
7 4123af3c 2023-02-12 op pollfd.c hash.c
8 f1752522 2022-10-29 stsp
9 f1752522 2022-10-29 stsp MAN = ${PROG}.8
10 f1752522 2022-10-29 stsp
11 f1752522 2022-10-29 stsp CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib -I${.CURDIR}/../gotd
12 f1752522 2022-10-29 stsp
13 f1752522 2022-10-29 stsp .if defined(PROFILE)
14 f1752522 2022-10-29 stsp LDADD = -lutil_p -lz_p -lm_p -lc_p -levent_p
15 f1752522 2022-10-29 stsp .else
16 f1752522 2022-10-29 stsp LDADD = -lutil -lz -lm -levent
17 f1752522 2022-10-29 stsp .endif
18 f1752522 2022-10-29 stsp DPADD = ${LIBZ} ${LIBUTIL}
19 f1752522 2022-10-29 stsp
20 f1752522 2022-10-29 stsp .if ${GOT_RELEASE} != "Yes"
21 f1752522 2022-10-29 stsp NOMAN = Yes
22 f1752522 2022-10-29 stsp .else
23 f1752522 2022-10-29 stsp BINDIR = ${PREFIX}/sbin
24 f1752522 2022-10-29 stsp .endif
25 f1752522 2022-10-29 stsp
26 f1752522 2022-10-29 stsp realinstall:
27 f1752522 2022-10-29 stsp ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} \
28 f1752522 2022-10-29 stsp -m ${BINMODE} ${PROG} ${BINDIR}/${PROG}
29 f1752522 2022-10-29 stsp
30 f1752522 2022-10-29 stsp .include <bsd.prog.mk>