Blame


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