Blob


1 .PATH:${.CURDIR}/../lib
3 .include "../got-version.mk"
5 PROG= tog
6 SRCS= tog.c blame.c commit_graph.c delta.c diff.c \
7 diffreg.c error.c fileindex.c object.c object_cache.c \
8 object_idset.c object_parse.c opentemp.c path.c pack.c \
9 privsep.c reference.c repository.c hash.c worktree.c \
10 worktree_open.c utf8.c inflate.c buf.c rcsutil.c diff3.c \
11 lockfile.c deflate.c object_create.c delta_cache.c \
12 gotconfig.c diff_main.c diff_atomize_text.c \
13 diff_myers.c diff_output.c diff_output_plain.c \
14 diff_output_unidiff.c diff_output_edscript.c \
15 diff_patience.c bloom.c murmurhash2.c sigs.c date.c \
16 object_open_privsep.c read_gitconfig_privsep.c \
17 read_gotconfig_privsep.c pollfd.c reference_parse.c \
18 object_qid.c
19 MAN = ${PROG}.1
21 CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib
23 .if defined(PROFILE)
24 LDADD = -lpanel_p -lncursesw_p -lutil_p -lz_p -lpthread_p -lm_p -lc_p
25 .else
26 LDADD = -lpanel -lncursesw -lutil -lz -lpthread -lm
27 .endif
28 DPADD = ${LIBZ} ${LIBUTIL} ${LIBM}
30 .if ${GOT_RELEASE} != "Yes"
31 NOMAN = Yes
32 .endif
34 .if defined(TOG_REGRESS)
35 CPPFLAGS += -DTOG_REGRESS
36 .endif
38 realinstall:
39 ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} \
40 -m ${BINMODE} ${PROG} ${BINDIR}/${PROG}
42 .include <bsd.prog.mk>