Blame


1 13b2bc37 2022-10-23 stsp .PATH:${.CURDIR}/../lib
2 13b2bc37 2022-10-23 stsp
3 13b2bc37 2022-10-23 stsp .include "../got-version.mk"
4 13b2bc37 2022-10-23 stsp
5 fbad5767 2022-10-24 stsp .if ${GOT_RELEASE} == "Yes"
6 13b2bc37 2022-10-23 stsp BINDIR ?= ${PREFIX}/sbin
7 fbad5767 2022-10-24 stsp .endif
8 13b2bc37 2022-10-23 stsp
9 13b2bc37 2022-10-23 stsp PROG= gotd
10 0ccf3acb 2022-11-16 stsp SRCS= gotd.c auth.c repo_read.c repo_write.c log.c privsep_stub.c \
11 d93ecf7d 2022-12-14 stsp listen.c imsg.c parse.y pack_create.c ratelimit.c deltify.c \
12 13b2bc37 2022-10-23 stsp bloom.c buf.c date.c deflate.c delta.c delta_cache.c error.c \
13 13b2bc37 2022-10-23 stsp gitconfig.c gotconfig.c inflate.c lockfile.c murmurhash2.c \
14 13b2bc37 2022-10-23 stsp object.c object_cache.c object_create.c object_idset.c \
15 13b2bc37 2022-10-23 stsp object_open_io.c object_parse.c opentemp.c pack.c path.c \
16 13b2bc37 2022-10-23 stsp read_gitconfig.c read_gotconfig.c reference.c repository.c \
17 53bf0b54 2023-02-23 op hash.c sigs.c pack_create_io.c pollfd.c reference_parse.c \
18 2f43cd69 2023-04-14 stsp repo_imsg.c pack_index.c session.c object_qid.c
19 13b2bc37 2022-10-23 stsp
20 8cc1bc1f 2023-03-07 stsp CLEANFILES = parse.h
21 8cc1bc1f 2023-03-07 stsp
22 13b2bc37 2022-10-23 stsp MAN = ${PROG}.conf.5 ${PROG}.8
23 13b2bc37 2022-10-23 stsp
24 13b2bc37 2022-10-23 stsp CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib -I${.CURDIR}
25 b43e02da 2023-03-04 op YFLAGS =
26 13b2bc37 2022-10-23 stsp
27 13b2bc37 2022-10-23 stsp .if defined(PROFILE)
28 13b2bc37 2022-10-23 stsp LDADD = -lutil_p -lz_p -lm_p -lc_p -levent_p
29 13b2bc37 2022-10-23 stsp .else
30 13b2bc37 2022-10-23 stsp LDADD = -lutil -lz -lm -levent
31 13b2bc37 2022-10-23 stsp .endif
32 08df2025 2023-04-14 stsp DPADD = ${LIBZ} ${LIBUTIL} ${LIBM} ${LIBEVENT}
33 13b2bc37 2022-10-23 stsp
34 13b2bc37 2022-10-23 stsp .if ${GOT_RELEASE} != "Yes"
35 13b2bc37 2022-10-23 stsp NOMAN = Yes
36 13b2bc37 2022-10-23 stsp .endif
37 13b2bc37 2022-10-23 stsp
38 c9573d37 2023-01-17 stsp realinstall:
39 c9573d37 2023-01-17 stsp ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} \
40 c9573d37 2023-01-17 stsp -m ${BINMODE} ${PROG} ${BINDIR}/${PROG}
41 c9573d37 2023-01-17 stsp
42 13b2bc37 2022-10-23 stsp .include <bsd.prog.mk>