Blob


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