Blame


1 3efd8e31 2022-10-23 thomas .PATH:${.CURDIR}/../lib
2 3efd8e31 2022-10-23 thomas
3 3efd8e31 2022-10-23 thomas .include "../got-version.mk"
4 3efd8e31 2022-10-23 thomas
5 3efd8e31 2022-10-23 thomas PREFIX ?= /usr/local
6 3efd8e31 2022-10-23 thomas BINDIR ?= ${PREFIX}/sbin
7 3efd8e31 2022-10-23 thomas
8 3efd8e31 2022-10-23 thomas PROG= gotd
9 3efd8e31 2022-10-23 thomas SRCS= gotd.c repo_read.c repo_write.c log.c privsep_stub.c imsg.c \
10 3efd8e31 2022-10-23 thomas parse.y pack_create.c ratelimit.c deltify.c \
11 3efd8e31 2022-10-23 thomas bloom.c buf.c date.c deflate.c delta.c delta_cache.c error.c \
12 3efd8e31 2022-10-23 thomas gitconfig.c gotconfig.c inflate.c lockfile.c murmurhash2.c \
13 3efd8e31 2022-10-23 thomas object.c object_cache.c object_create.c object_idset.c \
14 3efd8e31 2022-10-23 thomas object_open_io.c object_parse.c opentemp.c pack.c path.c \
15 3efd8e31 2022-10-23 thomas read_gitconfig.c read_gotconfig.c reference.c repository.c \
16 3efd8e31 2022-10-23 thomas sha1.c sigs.c pack_create_io.c pollfd.c reference_parse.c \
17 3efd8e31 2022-10-23 thomas repo_imsg.c pack_index.c
18 3efd8e31 2022-10-23 thomas
19 3efd8e31 2022-10-23 thomas MAN = ${PROG}.conf.5 ${PROG}.8
20 3efd8e31 2022-10-23 thomas
21 3efd8e31 2022-10-23 thomas CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib -I${.CURDIR}
22 3efd8e31 2022-10-23 thomas
23 3efd8e31 2022-10-23 thomas .if defined(PROFILE)
24 3efd8e31 2022-10-23 thomas LDADD = -lutil_p -lz_p -lm_p -lc_p -levent_p
25 3efd8e31 2022-10-23 thomas .else
26 3efd8e31 2022-10-23 thomas LDADD = -lutil -lz -lm -levent
27 3efd8e31 2022-10-23 thomas .endif
28 3efd8e31 2022-10-23 thomas DPADD = ${LIBZ} ${LIBUTIL}
29 3efd8e31 2022-10-23 thomas
30 3efd8e31 2022-10-23 thomas .if ${GOT_RELEASE} != "Yes"
31 3efd8e31 2022-10-23 thomas NOMAN = Yes
32 3efd8e31 2022-10-23 thomas .endif
33 3efd8e31 2022-10-23 thomas
34 3efd8e31 2022-10-23 thomas .include <bsd.prog.mk>