Blame


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