1 a596b957 2022-07-14 tracey .PATH:${.CURDIR}/../lib
2 ed619ca0 2022-12-14 op .PATH:${.CURDIR}/../template
4 a596b957 2022-07-14 tracey SUBDIR = libexec
6 a596b957 2022-07-14 tracey .include "../got-version.mk"
7 a596b957 2022-07-14 tracey .include "Makefile.inc"
9 a596b957 2022-07-14 tracey PROG = gotwebd
10 a596b957 2022-07-14 tracey SRCS = config.c sockets.c log.c gotwebd.c parse.y proc.c \
11 ed619ca0 2022-12-14 op fcgi.c gotweb.c got_operations.c tmpl.c pages.c
12 a596b957 2022-07-14 tracey SRCS += blame.c commit_graph.c delta.c diff.c \
13 ac8217d3 2023-06-11 op diffreg.c error.c object.c object_cache.c \
14 a596b957 2022-07-14 tracey object_idset.c object_parse.c opentemp.c path.c pack.c \
15 ac8217d3 2023-06-11 op privsep.c reference.c repository.c hash.c \
16 a596b957 2022-07-14 tracey utf8.c inflate.c buf.c rcsutil.c diff3.c \
17 a596b957 2022-07-14 tracey lockfile.c deflate.c object_create.c delta_cache.c \
18 a596b957 2022-07-14 tracey gotconfig.c diff_main.c diff_atomize_text.c diff_myers.c \
19 a596b957 2022-07-14 tracey diff_output.c diff_output_plain.c diff_output_unidiff.c \
20 a596b957 2022-07-14 tracey diff_output_edscript.c diff_patience.c bloom.c murmurhash2.c \
21 ac8217d3 2023-06-11 op sigs.c date.c sockaddr.c \
22 96fd6df1 2022-10-13 stsp object_open_privsep.c read_gitconfig_privsep.c \
23 2f43cd69 2023-04-14 stsp read_gotconfig_privsep.c pollfd.c reference_parse.c \
24 2f43cd69 2023-04-14 stsp object_qid.c
26 ed619ca0 2022-12-14 op .if exists(${.CURDIR}/../template/obj/template)
27 ed619ca0 2022-12-14 op TEMPLATE = ${.CURDIR}/../template/obj/template
29 ed619ca0 2022-12-14 op TEMPLATE = ${.CURDIR}/../template/template
32 ed619ca0 2022-12-14 op .SUFFIXES: .tmpl
34 ed619ca0 2022-12-14 op ${TEMPLATE} -o $@ $<
36 8f46aeb1 2023-01-17 stsp CLEANFILES = pages.c
38 a596b957 2022-07-14 tracey MAN = ${PROG}.conf.5 ${PROG}.8
40 a596b957 2022-07-14 tracey CPPFLAGS += -I${.CURDIR}/../include -I${.CURDIR}/../lib -I${.CURDIR}
41 ed619ca0 2022-12-14 op CPPFLAGS += -I${.CURDIR}/../template
42 a596b957 2022-07-14 tracey LDADD += -lz -levent -lutil -lm
44 08df2025 2023-04-14 stsp DPADD = ${LIBEVENT} ${LIBUTIL} ${LIBM}
45 a596b957 2022-07-14 tracey #CFLAGS += -DGOT_NO_OBJ_CACHE
47 a596b957 2022-07-14 tracey .if ${GOT_RELEASE} != "Yes"
48 a596b957 2022-07-14 tracey NOMAN = Yes
51 a596b957 2022-07-14 tracey .if defined(PROFILE)
52 a596b957 2022-07-14 tracey CPPFLAGS += -DPROFILE
53 a596b957 2022-07-14 tracey DEBUG = -O0 -pg -g -static
55 a596b957 2022-07-14 tracey DEBUG = -O0 -g
58 a596b957 2022-07-14 tracey realinstall:
59 a596b957 2022-07-14 tracey if [ ! -d ${DESTDIR}${PUB_REPOS_DIR}/. ]; then \
60 a596b957 2022-07-14 tracey ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${PUB_REPOS_DIR}; \
62 a596b957 2022-07-14 tracey ${INSTALL} -c -o root -g daemon -m 0755 ${PROG} ${BINDIR}/${PROG}
63 a596b957 2022-07-14 tracey if [ ! -d ${DESTDIR}${HTTPD_DIR}/. ]; then \
64 a596b957 2022-07-14 tracey ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${HTTPD_DIR}; \
66 a596b957 2022-07-14 tracey if [ ! -d ${DESTDIR}${PROG_DIR}/. ]; then \
67 a596b957 2022-07-14 tracey ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${PROG_DIR}; \
69 7cc8fde4 2022-08-31 op ${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0644 \
70 a596b957 2022-07-14 tracey ${.CURDIR}/files/htdocs/${PROG}/* ${DESTDIR}${PROG_DIR}
72 a596b957 2022-07-14 tracey .include <bsd.prog.mk>