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