Blob


1 sbin_PROGRAMS = gotwebd
3 include $(top_builddir)/Makefile.common
5 # /home/n6tadam/projects/got/gotwebd/../template/template -o pages.c pages.tmpl
7 BUILT_SOURCES = pages.c
8 CLEANFILES = pages.c parse.c
10 pages.c: $(top_srcdir)/gotwebd/pages.tmpl
11 ${MAKE} -C $(top_builddir)/template
12 $(top_builddir)/template/template -o pages.c $(top_srcdir)/gotwebd/pages.tmpl
14 gotwebd_SOURCES = config.c \
15 $(top_srcdir)/lib/blame.c \
16 $(top_srcdir)/lib/bloom.c \
17 $(top_srcdir)/lib/buf.c \
18 $(top_srcdir)/lib/commit_graph.c \
19 $(top_srcdir)/lib/date.c \
20 $(top_srcdir)/lib/deflate.c \
21 $(top_srcdir)/lib/delta.c \
22 $(top_srcdir)/lib/delta_cache.c \
23 $(top_srcdir)/lib/diff.c \
24 $(top_srcdir)/lib/diff3.c \
25 $(top_srcdir)/lib/diff_atomize_text.c \
26 $(top_srcdir)/lib/diff_main.c \
27 $(top_srcdir)/lib/diff_myers.c \
28 $(top_srcdir)/lib/diff_output.c \
29 $(top_srcdir)/lib/diff_output_edscript.c \
30 $(top_srcdir)/lib/diff_output_plain.c \
31 $(top_srcdir)/lib/diff_output_unidiff.c \
32 $(top_srcdir)/lib/diff_patience.c \
33 $(top_srcdir)/lib/diffreg.c \
34 $(top_srcdir)/lib/error.c \
35 $(top_srcdir)/lib/fileindex.c \
36 $(top_srcdir)/lib/gotconfig.c \
37 $(top_srcdir)/lib/hash.c \
38 $(top_srcdir)/lib/inflate.c \
39 $(top_srcdir)/lib/lockfile.c \
40 $(top_srcdir)/lib/murmurhash2.c \
41 $(top_srcdir)/lib/object.c \
42 $(top_srcdir)/lib/object_cache.c \
43 $(top_srcdir)/lib/object_create.c \
44 $(top_srcdir)/lib/object_idset.c \
45 $(top_srcdir)/lib/object_open_privsep.c \
46 $(top_srcdir)/lib/object_parse.c \
47 $(top_srcdir)/lib/opentemp.c \
48 $(top_srcdir)/lib/pack.c \
49 $(top_srcdir)/lib/patch.c \
50 $(top_srcdir)/lib/path.c \
51 $(top_srcdir)/lib/pollfd.c \
52 $(top_srcdir)/lib/privsep.c \
53 $(top_srcdir)/lib/rcsutil.c \
54 $(top_srcdir)/lib/read_gitconfig_privsep.c \
55 $(top_srcdir)/lib/read_gotconfig_privsep.c \
56 $(top_srcdir)/lib/reference.c \
57 $(top_srcdir)/lib/reference_parse.c \
58 $(top_srcdir)/lib/repository.c \
59 $(top_srcdir)/lib/sigs.c \
60 $(top_srcdir)/lib/utf8.c \
61 $(top_srcdir)/lib/worktree.c \
62 $(top_srcdir)/lib/worktree_open.c \
63 $(top_srcdir)/template/tmpl.c \
64 fcgi.c \
65 got_operations.c \
66 gotweb.c \
67 gotwebd.c \
68 log.c \
69 pages.c \
70 parse.y \
71 proc.c \
72 sockets.c
73 if HOST_LINUX
74 nodist_gotwebd_SOURCES = $(top_srcdir)/compat/sockaddr-@PLATFORM@.c
75 else
76 nodist_gotwebd_SOURCES = $(top_srcdir)/lib/sockaddr.c
77 endif
79 gotwebd_DEPENDENCIES = $(top_builddir)/compat/libopenbsd-compat.a
80 EXTRA_DIST = $(top_srcdir)/gotwebd/*.h \
81 $(top_srcdir)/gotwebd/*.tmpl \
82 $(top_srcdir)/template/tmpl.h \
83 gotwebd.8 gotwebd.conf.5
85 man5_MANS = gotwebd.conf.5
86 man8_MANS = gotwebd.8
88 LDADD = -L$(top_builddir)/compat -L$(top_builddir)/template \
89 -lopenbsd-compat -lm
90 LDADD += $(libbsd_LIBS) \
91 $(libevent_LIBS) \
92 $(zlib_LIBS) \
93 $(libuuid_LIBS) \
94 $(libutil_LIBS)
95 if HOST_FREEBSD
96 LDADD += -lmd
97 endif
99 AM_CPPFLAGS += $(libbsd_CFLAGS) $(libevent_CFLAGS) $(zlib_CFLAGS) \
100 $(libuuid_CFLAGS)
102 #realinstall:
103 # if [ ! -d ${DESTDIR}${PUB_REPOS_DIR}/. ]; then \
104 # ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${PUB_REPOS_DIR}; \
105 # fi
106 # ${INSTALL} -c -o root -g daemon -m 0755 ${PROG} ${BINDIR}/${PROG}
107 # if [ ! -d ${DESTDIR}${HTTPD_DIR}/. ]; then \
108 # ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${HTTPD_DIR}; \
109 # fi
110 # if [ ! -d ${DESTDIR}${PROG_DIR}/. ]; then \
111 # ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${PROG_DIR}; \
112 # fi
113 # ${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0755 \
114 # ${.CURDIR}/files/htdocs/${PROG}/* ${DESTDIR}${PROG_DIR}
116 #.include <bsd.prog.mk>