Blob


1 sbin_PROGRAMS = gotwebd
3 include $(top_builddir)/Makefile.common
5 gotwebd_SOURCES = config.c \
6 fcgi.c \
7 got_operations.c \
8 gotweb.c \
9 gotwebd.c \
10 log.c \
11 proc.c \
12 sockets.c \
13 parse.y \
14 $(top_srcdir)/lib/blame.c \
15 $(top_srcdir)/lib/bloom.c \
16 $(top_srcdir)/lib/buf.c \
17 $(top_srcdir)/lib/commit_graph.c \
18 $(top_srcdir)/lib/date.c \
19 $(top_srcdir)/lib/deflate.c \
20 $(top_srcdir)/lib/delta.c \
21 $(top_srcdir)/lib/delta_cache.c \
22 $(top_srcdir)/lib/diff.c \
23 $(top_srcdir)/lib/diff3.c \
24 $(top_srcdir)/lib/diff_atomize_text.c \
25 $(top_srcdir)/lib/diff_main.c \
26 $(top_srcdir)/lib/diff_myers.c \
27 $(top_srcdir)/lib/diff_output.c \
28 $(top_srcdir)/lib/diff_output_edscript.c \
29 $(top_srcdir)/lib/diff_output_plain.c \
30 $(top_srcdir)/lib/diff_output_unidiff.c \
31 $(top_srcdir)/lib/diff_patience.c \
32 $(top_srcdir)/lib/diffreg.c \
33 $(top_srcdir)/lib/error.c \
34 $(top_srcdir)/lib/fileindex.c \
35 $(top_srcdir)/lib/gotconfig.c \
36 $(top_srcdir)/lib/inflate.c \
37 $(top_srcdir)/lib/lockfile.c \
38 $(top_srcdir)/lib/murmurhash2.c \
39 $(top_srcdir)/lib/object.c \
40 $(top_srcdir)/lib/object_cache.c \
41 $(top_srcdir)/lib/object_create.c \
42 $(top_srcdir)/lib/object_idset.c \
43 $(top_srcdir)/lib/object_parse.c \
44 $(top_srcdir)/lib/opentemp.c \
45 $(top_srcdir)/lib/pack.c \
46 $(top_srcdir)/lib/patch.c \
47 $(top_srcdir)/lib/path.c \
48 $(top_srcdir)/lib/privsep.c \
49 $(top_srcdir)/lib/rcsutil.c \
50 $(top_srcdir)/lib/reference.c \
51 $(top_srcdir)/lib/repository.c \
52 $(top_srcdir)/lib/sha1.c \
53 $(top_srcdir)/lib/sigs.c \
54 $(top_srcdir)/lib/utf8.c \
55 $(top_srcdir)/lib/worktree.c \
56 $(top_srcdir)/lib/worktree_open.c
57 if HOST_LINUX
58 nodist_gotwebd_SOURCES = $(top_srcdir)/compat/sockaddr-@PLATFORM@.c
59 else
60 nodist_gotwebd_SOURCES = $(top_srcdir)/lib/sockaddr.c
61 endif
63 gotwebd_DEPENDENCIES = $(top_builddir)/compat/libopenbsd-compat.a
64 EXTRA_DIST = $(top_srcdir)/gotwebd/*.h \
65 gotwebd.8 gotwebd.conf.5
67 man5_MANS = gotwebd.conf.5
68 man8_MANS = gotwebd.8
70 LDADD = -L$(top_builddir)/compat -lopenbsd-compat -lm
71 if HOST_FREEBSD
72 LDADD += -lmd
73 endif
75 #realinstall:
76 # if [ ! -d ${DESTDIR}${PUB_REPOS_DIR}/. ]; then \
77 # ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${PUB_REPOS_DIR}; \
78 # fi
79 # ${INSTALL} -c -o root -g daemon -m 0755 ${PROG} ${BINDIR}/${PROG}
80 # if [ ! -d ${DESTDIR}${HTTPD_DIR}/. ]; then \
81 # ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${HTTPD_DIR}; \
82 # fi
83 # if [ ! -d ${DESTDIR}${PROG_DIR}/. ]; then \
84 # ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${PROG_DIR}; \
85 # fi
86 # ${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0755 \
87 # ${.CURDIR}/files/htdocs/${PROG}/* ${DESTDIR}${PROG_DIR}
88 #
89 #.include <bsd.prog.mk>