Blame


1 3efd8e31 2022-10-23 thomas .PATH:${.CURDIR}/../lib
2 3efd8e31 2022-10-23 thomas
3 3efd8e31 2022-10-23 thomas .include "../got-version.mk"
4 3efd8e31 2022-10-23 thomas
5 e72def18 2022-10-24 thomas .if ${GOT_RELEASE} == "Yes"
6 3efd8e31 2022-10-23 thomas BINDIR ?= ${PREFIX}/sbin
7 e72def18 2022-10-24 thomas .endif
8 3efd8e31 2022-10-23 thomas
9 3efd8e31 2022-10-23 thomas PROG= gotd
10 729a7e24 2022-11-17 thomas SRCS= gotd.c auth.c repo_read.c repo_write.c log.c privsep_stub.c \
11 2b3d32a1 2022-12-30 thomas listen.c imsg.c parse.y pack_create.c ratelimit.c deltify.c \
12 3efd8e31 2022-10-23 thomas bloom.c buf.c date.c deflate.c delta.c delta_cache.c error.c \
13 3efd8e31 2022-10-23 thomas gitconfig.c gotconfig.c inflate.c lockfile.c murmurhash2.c \
14 3efd8e31 2022-10-23 thomas object.c object_cache.c object_create.c object_idset.c \
15 3efd8e31 2022-10-23 thomas object_open_io.c object_parse.c opentemp.c pack.c path.c \
16 3efd8e31 2022-10-23 thomas read_gitconfig.c read_gotconfig.c reference.c repository.c \
17 be288a59 2023-02-23 thomas hash.c sigs.c pack_create_io.c pollfd.c reference_parse.c \
18 62ee7d94 2023-01-10 thomas repo_imsg.c pack_index.c session.c
19 3efd8e31 2022-10-23 thomas
20 8f3fcd24 2023-03-08 thomas CLEANFILES = parse.h
21 8f3fcd24 2023-03-08 thomas
22 3efd8e31 2022-10-23 thomas MAN = ${PROG}.conf.5 ${PROG}.8
23 3efd8e31 2022-10-23 thomas
24 3efd8e31 2022-10-23 thomas CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib -I${.CURDIR}
25 18a742f3 2023-03-05 thomas YFLAGS =
26 3efd8e31 2022-10-23 thomas
27 3efd8e31 2022-10-23 thomas .if defined(PROFILE)
28 3efd8e31 2022-10-23 thomas LDADD = -lutil_p -lz_p -lm_p -lc_p -levent_p
29 3efd8e31 2022-10-23 thomas .else
30 3efd8e31 2022-10-23 thomas LDADD = -lutil -lz -lm -levent
31 3efd8e31 2022-10-23 thomas .endif
32 3efd8e31 2022-10-23 thomas DPADD = ${LIBZ} ${LIBUTIL}
33 3efd8e31 2022-10-23 thomas
34 3efd8e31 2022-10-23 thomas .if ${GOT_RELEASE} != "Yes"
35 3efd8e31 2022-10-23 thomas NOMAN = Yes
36 3efd8e31 2022-10-23 thomas .endif
37 3efd8e31 2022-10-23 thomas
38 79c6f668 2023-01-19 thomas realinstall:
39 79c6f668 2023-01-19 thomas ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} \
40 79c6f668 2023-01-19 thomas -m ${BINMODE} ${PROG} ${BINDIR}/${PROG}
41 79c6f668 2023-01-19 thomas
42 3efd8e31 2022-10-23 thomas .include <bsd.prog.mk>