Blob


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