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
23 MAN = ${PROG}.conf.5 ${PROG}.8
25 CPPFLAGS += -I${.CURDIR}/../include -I${.CURDIR}/../lib -I${.CURDIR}
26 LDADD += -lz -levent -lutil -lm
27 YFLAGS =
28 DPADD = ${LIBEVENT} ${LIBUTIL}
29 #CFLAGS += -DGOT_NO_OBJ_CACHE
31 .if ${GOT_RELEASE} != "Yes"
32 NOMAN = Yes
33 .endif
35 .if defined(PROFILE)
36 CPPFLAGS += -DPROFILE
37 DEBUG = -O0 -pg -g -static
38 .else
39 DEBUG = -O0 -g
40 .endif
42 realinstall:
43 if [ ! -d ${DESTDIR}${PUB_REPOS_DIR}/. ]; then \
44 ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${PUB_REPOS_DIR}; \
45 fi
46 ${INSTALL} -c -o root -g daemon -m 0755 ${PROG} ${BINDIR}/${PROG}
47 if [ ! -d ${DESTDIR}${HTTPD_DIR}/. ]; then \
48 ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${HTTPD_DIR}; \
49 fi
50 if [ ! -d ${DESTDIR}${PROG_DIR}/. ]; then \
51 ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${PROG_DIR}; \
52 fi
53 ${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0644 \
54 ${.CURDIR}/files/htdocs/${PROG}/* ${DESTDIR}${PROG_DIR}
56 .include <bsd.prog.mk>