Blame


1 13b2bc37 2022-10-23 stsp .PATH:${.CURDIR}/../lib
2 13b2bc37 2022-10-23 stsp
3 ba97b2d7 2024-03-20 stsp SUBDIR = libexec
4 ba97b2d7 2024-03-20 stsp
5 13b2bc37 2022-10-23 stsp .include "../got-version.mk"
6 13b2bc37 2022-10-23 stsp
7 fbad5767 2022-10-24 stsp .if ${GOT_RELEASE} == "Yes"
8 13b2bc37 2022-10-23 stsp BINDIR ?= ${PREFIX}/sbin
9 fbad5767 2022-10-24 stsp .endif
10 13b2bc37 2022-10-23 stsp
11 13b2bc37 2022-10-23 stsp PROG= gotd
12 0ccf3acb 2022-11-16 stsp SRCS= gotd.c auth.c repo_read.c repo_write.c log.c privsep_stub.c \
13 d93ecf7d 2022-12-14 stsp listen.c imsg.c parse.y pack_create.c ratelimit.c deltify.c \
14 13b2bc37 2022-10-23 stsp bloom.c buf.c date.c deflate.c delta.c delta_cache.c error.c \
15 13b2bc37 2022-10-23 stsp gitconfig.c gotconfig.c inflate.c lockfile.c murmurhash2.c \
16 13b2bc37 2022-10-23 stsp object.c object_cache.c object_create.c object_idset.c \
17 13b2bc37 2022-10-23 stsp object_open_io.c object_parse.c opentemp.c pack.c path.c \
18 13b2bc37 2022-10-23 stsp read_gitconfig.c read_gotconfig.c reference.c repository.c \
19 53bf0b54 2023-02-23 op hash.c sigs.c pack_create_io.c pollfd.c reference_parse.c \
20 e70fd952 2024-03-22 stsp repo_imsg.c pack_index.c session_read.c session_write.c \
21 e70fd952 2024-03-22 stsp object_qid.c notify.c commit_graph.c diffreg.c diff.c \
22 ba97b2d7 2024-03-20 stsp diff_main.c diff_atomize_text.c diff_myers.c diff_output.c \
23 ba97b2d7 2024-03-20 stsp diff_output_plain.c diff_output_unidiff.c \
24 ba97b2d7 2024-03-20 stsp diff_output_edscript.c diff_patience.c
25 13b2bc37 2022-10-23 stsp
26 8cc1bc1f 2023-03-07 stsp CLEANFILES = parse.h
27 8cc1bc1f 2023-03-07 stsp
28 13b2bc37 2022-10-23 stsp MAN = ${PROG}.conf.5 ${PROG}.8
29 13b2bc37 2022-10-23 stsp
30 13b2bc37 2022-10-23 stsp CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib -I${.CURDIR}
31 b43e02da 2023-03-04 op YFLAGS =
32 13b2bc37 2022-10-23 stsp
33 13b2bc37 2022-10-23 stsp .if defined(PROFILE)
34 13b2bc37 2022-10-23 stsp LDADD = -lutil_p -lz_p -lm_p -lc_p -levent_p
35 13b2bc37 2022-10-23 stsp .else
36 13b2bc37 2022-10-23 stsp LDADD = -lutil -lz -lm -levent
37 13b2bc37 2022-10-23 stsp .endif
38 08df2025 2023-04-14 stsp DPADD = ${LIBZ} ${LIBUTIL} ${LIBM} ${LIBEVENT}
39 13b2bc37 2022-10-23 stsp
40 13b2bc37 2022-10-23 stsp .if ${GOT_RELEASE} != "Yes"
41 13b2bc37 2022-10-23 stsp NOMAN = Yes
42 13b2bc37 2022-10-23 stsp .endif
43 13b2bc37 2022-10-23 stsp
44 c9573d37 2023-01-17 stsp realinstall:
45 c9573d37 2023-01-17 stsp ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} \
46 c9573d37 2023-01-17 stsp -m ${BINMODE} ${PROG} ${BINDIR}/${PROG}
47 c9573d37 2023-01-17 stsp
48 13b2bc37 2022-10-23 stsp .include <bsd.prog.mk>