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 pack_create.c ratelimit.c deltify.c \
14 bloom.c buf.c date.c deflate.c delta.c delta_cache.c error.c \
15 gitconfig.c gotconfig.c inflate.c lockfile.c murmurhash2.c \
16 object.c object_cache.c object_create.c object_idset.c \
17 object_open_io.c object_parse.c opentemp.c pack.c path.c \
18 read_gitconfig.c read_gotconfig.c reference.c repository.c \
19 hash.c sigs.c pack_create_io.c pollfd.c reference_parse.c \
20 repo_imsg.c pack_index.c session_read.c session_write.c \
21 object_qid.c notify.c commit_graph.c diffreg.c diff.c \
22 diff_main.c diff_atomize_text.c diff_myers.c diff_output.c \
23 diff_output_plain.c diff_output_unidiff.c \
24 diff_output_edscript.c diff_patience.c
26 CLEANFILES = parse.h
28 MAN = ${PROG}.conf.5 ${PROG}.8
30 CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib -I${.CURDIR}
31 YFLAGS =
33 .if defined(PROFILE)
34 LDADD = -lutil_p -lz_p -lm_p -lc_p -levent_p
35 .else
36 LDADD = -lutil -lz -lm -levent
37 .endif
38 DPADD = ${LIBZ} ${LIBUTIL} ${LIBM} ${LIBEVENT}
40 .if ${GOT_RELEASE} != "Yes"
41 NOMAN = Yes
42 .endif
44 realinstall:
45 ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} \
46 -m ${BINMODE} ${PROG} ${BINDIR}/${PROG}
48 .include <bsd.prog.mk>