Blame


1 3efd8e31 2022-10-23 thomas .PATH:${.CURDIR}/../lib ${.CURDIR}/../gotd
2 3efd8e31 2022-10-23 thomas
3 3efd8e31 2022-10-23 thomas .include "../got-version.mk"
4 3efd8e31 2022-10-23 thomas
5 3efd8e31 2022-10-23 thomas PROG= gotsh
6 3efd8e31 2022-10-23 thomas SRCS= gotsh.c error.c pkt.c sha1.c serve.c path.c gitproto.c \
7 01a217a7 2023-02-07 thomas imsg.c inflate.c object_parse.c pollfd.c reference_parse.c
8 3efd8e31 2022-10-23 thomas
9 3efd8e31 2022-10-23 thomas MAN = ${PROG}.1
10 3efd8e31 2022-10-23 thomas
11 3efd8e31 2022-10-23 thomas CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib -I${.CURDIR}/../gotd
12 3efd8e31 2022-10-23 thomas
13 3efd8e31 2022-10-23 thomas .if defined(PROFILE)
14 3efd8e31 2022-10-23 thomas LDADD = -lutil_p -lz_p -lm_p -lc_p -levent_p
15 3efd8e31 2022-10-23 thomas .else
16 3efd8e31 2022-10-23 thomas LDADD = -lutil -lz -lm -levent
17 3efd8e31 2022-10-23 thomas .endif
18 3efd8e31 2022-10-23 thomas DPADD = ${LIBZ} ${LIBUTIL}
19 3efd8e31 2022-10-23 thomas
20 3efd8e31 2022-10-23 thomas .if ${GOT_RELEASE} != "Yes"
21 3efd8e31 2022-10-23 thomas NOMAN = Yes
22 3efd8e31 2022-10-23 thomas .endif
23 3efd8e31 2022-10-23 thomas
24 3efd8e31 2022-10-23 thomas realinstall:
25 3efd8e31 2022-10-23 thomas ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} \
26 3efd8e31 2022-10-23 thomas -m ${BINMODE} ${PROG} ${BINDIR}/${PROG}
27 3efd8e31 2022-10-23 thomas
28 3efd8e31 2022-10-23 thomas .include <bsd.prog.mk>