fix test_send_config test directory name
[got-portable.git] / gotd / Makefile.am
blobe0108d23a1f6d0de371ab035f87e4e97f47b2728
1 sbin_PROGRAMS = gotd
3 include $(top_builddir)/Makefile.common
5 AM_CPPFLAGS += -DGOTD_EMPTY_PATH='"@GOTD_EMPTY_PATHC@"'
7 gotd_SOURCES = gotd.c \
8         auth.c \
9         imsg.c \
10         listen.c \
11         log.c \
12         parse.y \
13         privsep_stub.c \
14         repo_imsg.c \
15         repo_read.c \
16         repo_write.c \
17         session.c \
18         $(top_srcdir)/lib/bloom.c \
19         $(top_srcdir)/lib/buf.c \
20         $(top_srcdir)/lib/date.c \
21         $(top_srcdir)/lib/deflate.c \
22         $(top_srcdir)/lib/delta.c \
23         $(top_srcdir)/lib/delta_cache.c \
24         $(top_srcdir)/lib/deltify.c \
25         $(top_srcdir)/lib/error.c \
26         $(top_srcdir)/lib/gitconfig.c \
27         $(top_srcdir)/lib/gotconfig.c \
28         $(top_srcdir)/lib/hash.c \
29         $(top_srcdir)/lib/inflate.c \
30         $(top_srcdir)/lib/lockfile.c \
31         $(top_srcdir)/lib/murmurhash2.c \
32         $(top_srcdir)/lib/object.c \
33         $(top_srcdir)/lib/object_cache.c \
34         $(top_srcdir)/lib/object_create.c \
35         $(top_srcdir)/lib/object_idset.c \
36         $(top_srcdir)/lib/object_open_io.c \
37         $(top_srcdir)/lib/object_parse.c \
38         $(top_srcdir)/lib/object_qid.c \
39         $(top_srcdir)/lib/opentemp.c \
40         $(top_srcdir)/lib/pack.c \
41         $(top_srcdir)/lib/pack_create.c \
42         $(top_srcdir)/lib/pack_create_io.c \
43         $(top_srcdir)/lib/pack_index.c \
44         $(top_srcdir)/lib/path.c \
45         $(top_srcdir)/lib/pollfd.c \
46         $(top_srcdir)/lib/ratelimit.c \
47         $(top_srcdir)/lib/read_gitconfig.c \
48         $(top_srcdir)/lib/read_gotconfig.c \
49         $(top_srcdir)/lib/reference.c \
50         $(top_srcdir)/lib/reference_parse.c \
51         $(top_srcdir)/lib/repository.c \
52         $(top_srcdir)/lib/sigs.c
54 if !HOST_OPENBSD
55 gotd_SOURCES += chroot-notobsd.c
56 else
57 gotd_SOURCES += chroot-openbsd.c
58 endif
59        
60 gotd_DEPENDENCIES = $(top_builddir)/compat/libopenbsd-compat.a
61 EXTRA_DIST = gotd.8 gotd.conf.5 *.h
63 man5_MANS = gotd.conf.5
64 man8_MANS = gotd.8
66 LDADD = -L$(top_builddir)/compat -lopenbsd-compat -lm
67 LDADD += $(libuuid_LIBS) \
68          $(zlib_LIBS) \
69          $(libbsd_LIBS) \
70          $(libevent_LIBS) \
71          $(libutil_LIBS)
72 if HOST_FREEBSD
73 LDADD += -lmd
74 endif
76 AM_CPPFLAGS += $(libuuid_CFLAGS) \
77                $(zlib_CFLAGS) \
78                $(libbsd_CFLAGS) \
79                $(libevent_CFLAGS)