Blob


1 .PATH:${.CURDIR}/../lib
3 SUBDIR = libexec
5 .include "../got-version.mk"
6 .include "Makefile.inc"
8 PROG = gotwebd
9 SRCS = config.c sockets.c log.c gotwebd.c parse.y proc.c \
10 fcgi.c gotweb.c got_operations.c
11 SRCS += blame.c commit_graph.c delta.c diff.c \
12 diffreg.c error.c fileindex.c object.c object_cache.c \
13 object_idset.c object_parse.c opentemp.c path.c pack.c \
14 privsep.c reference.c repository.c sha1.c worktree.c \
15 utf8.c inflate.c buf.c rcsutil.c diff3.c \
16 lockfile.c deflate.c object_create.c delta_cache.c \
17 gotconfig.c diff_main.c diff_atomize_text.c diff_myers.c \
18 diff_output.c diff_output_plain.c diff_output_unidiff.c \
19 diff_output_edscript.c diff_patience.c bloom.c murmurhash2.c \
20 worktree_open.c patch.c sigs.c date.c sockaddr.c \
21 object_open_privsep.c read_gitconfig_privsep.c \
22 read_gotconfig_privsep.c pollfd.c reference_parse.c
24 MAN = ${PROG}.conf.5 ${PROG}.8
26 CPPFLAGS += -I${.CURDIR}/../include -I${.CURDIR}/../lib -I${.CURDIR}
27 LDADD += -lz -levent -lutil -lm
28 YFLAGS =
29 DPADD = ${LIBEVENT} ${LIBUTIL}
30 #CFLAGS += -DGOT_NO_OBJ_CACHE
32 .if ${GOT_RELEASE} != "Yes"
33 NOMAN = Yes
34 .endif
36 .if defined(PROFILE)
37 CPPFLAGS += -DPROFILE
38 DEBUG = -O0 -pg -g -static
39 .else
40 DEBUG = -O0 -g
41 .endif
43 realinstall:
44 if [ ! -d ${DESTDIR}${PUB_REPOS_DIR}/. ]; then \
45 ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${PUB_REPOS_DIR}; \
46 fi
47 ${INSTALL} -c -o root -g daemon -m 0755 ${PROG} ${BINDIR}/${PROG}
48 if [ ! -d ${DESTDIR}${HTTPD_DIR}/. ]; then \
49 ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${HTTPD_DIR}; \
50 fi
51 if [ ! -d ${DESTDIR}${PROG_DIR}/. ]; then \
52 ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${PROG_DIR}; \
53 fi
54 ${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0644 \
55 ${.CURDIR}/files/htdocs/${PROG}/* ${DESTDIR}${PROG_DIR}
57 .include <bsd.prog.mk>