Blame


1 b09c1279 2023-03-28 stsp .PATH:${.CURDIR}/../lib
2 b09c1279 2023-03-28 stsp .PATH:${.CURDIR}/../gotd
3 b09c1279 2023-03-28 stsp
4 b09c1279 2023-03-28 stsp .include "../got-version.mk"
5 b09c1279 2023-03-28 stsp
6 b09c1279 2023-03-28 stsp .if ${GOT_RELEASE} == "Yes"
7 b09c1279 2023-03-28 stsp BINDIR ?= ${PREFIX}/bin
8 b09c1279 2023-03-28 stsp .endif
9 b09c1279 2023-03-28 stsp
10 b09c1279 2023-03-28 stsp PROG= gitwrapper
11 b09c1279 2023-03-28 stsp SRCS= gitwrapper.c parse.y log.c serve.c auth.c listen.c pkt.c \
12 b09c1279 2023-03-28 stsp error.c gitproto.c hash.c reference.c object.c object_parse.c \
13 b09c1279 2023-03-28 stsp path.c object_idset.c object_create.c inflate.c opentemp.c \
14 b09c1279 2023-03-28 stsp lockfile.c repository.c gotconfig.c pack.c bloom.c buf.c \
15 b09c1279 2023-03-28 stsp object_cache.c privsep_stub.c pollfd.c imsg.c \
16 b09c1279 2023-03-28 stsp reference_parse.c object_open_io.c sigs.c deflate.c \
17 b09c1279 2023-03-28 stsp read_gotconfig.c read_gitconfig.c delta_cache.c delta.c \
18 b09c1279 2023-03-28 stsp murmurhash2.c date.c gitconfig.c
19 b09c1279 2023-03-28 stsp
20 b09c1279 2023-03-28 stsp CLEANFILES = parse.h
21 b09c1279 2023-03-28 stsp
22 c27166a8 2023-03-28 stsp MAN = ${PROG}.1
23 b09c1279 2023-03-28 stsp
24 b09c1279 2023-03-28 stsp CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib -I${.CURDIR}/../gotd
25 b09c1279 2023-03-28 stsp
26 b09c1279 2023-03-28 stsp .if defined(PROFILE)
27 b09c1279 2023-03-28 stsp LDADD = -lutil_p -lz_p -lm_p -lc_p -levent_p
28 b09c1279 2023-03-28 stsp .else
29 b09c1279 2023-03-28 stsp LDADD = -lutil -lz -lm -levent
30 b09c1279 2023-03-28 stsp .endif
31 b09c1279 2023-03-28 stsp DPADD = ${LIBZ} ${LIBUTIL}
32 b09c1279 2023-03-28 stsp
33 b09c1279 2023-03-28 stsp .if ${GOT_RELEASE} != "Yes"
34 b09c1279 2023-03-28 stsp NOMAN = Yes
35 b09c1279 2023-03-28 stsp .endif
36 b09c1279 2023-03-28 stsp
37 b09c1279 2023-03-28 stsp realinstall:
38 b09c1279 2023-03-28 stsp ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} \
39 b09c1279 2023-03-28 stsp -m ${BINMODE} ${PROG} ${BINDIR}/${PROG}
40 b09c1279 2023-03-28 stsp
41 b09c1279 2023-03-28 stsp .include <bsd.prog.mk>