portable: release 0.93
[got-portable.git] / gitwrapper / Makefile.am
blob4267fc7b77a9a4b2dcd891cae1a69243237c38d6
1 bin_PROGRAMS = gitwrapper
3 include $(top_builddir)/Makefile.common
5 AM_CPPFLAGS += -I$(top_builddir)/gotd
6 AM_CPPFLAGS += -DGITWRAPPER_GIT_LIBEXEC_DIR='"@GITWRAPPER_LIBEXEC_PATHC@"'
8 CLEANFILES = parse.h
10 gitwrapper_SOURCES = gitwrapper.c \
11                   $(top_srcdir)/gotd/auth.c \
12                   $(top_srcdir)/gotd/imsg.c \
13                   $(top_srcdir)/gotd/listen.c \
14                   $(top_srcdir)/gotd/log.c \
15                   $(top_srcdir)/gotd/parse.y \
16                   $(top_srcdir)/gotd/privsep_stub.c \
17                   $(top_srcdir)/lib/bloom.c \
18                   $(top_srcdir)/lib/buf.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/dial.c \
24                   $(top_srcdir)/lib/error.c \
25                   $(top_srcdir)/lib/gitconfig.c \
26                   $(top_srcdir)/lib/gitproto.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/path.c \
42                   $(top_srcdir)/lib/pkt.c \
43                   $(top_srcdir)/lib/pollfd.c \
44                   $(top_srcdir)/lib/read_gitconfig.c \
45                   $(top_srcdir)/lib/read_gotconfig.c \
46                   $(top_srcdir)/lib/reference.c \
47                   $(top_srcdir)/lib/reference_parse.c \
48                   $(top_srcdir)/lib/repository.c \
49                   $(top_srcdir)/lib/serve.c \
50                   $(top_srcdir)/lib/sigs.c
52 gitwrapper_DEPENDENCIES = $(top_builddir)/compat/libopenbsd-compat.a
53 EXTRA_DIST = gitwrapper.1
55 man1_MANS = gitwrapper.1
57 LDADD = -L$(top_builddir)/compat -lopenbsd-compat -lm
58 LDADD += $(libbsd_LIBS) \
59          $(libevent_LIBS) \
60          $(zlib_LIBS) \
61          $(libuuid_LIBS) \
62          $(libutil_LIBS)
63 if HOST_FREEBSD
64 LDADD += -lmd
65 endif
67 AM_CPPFLAGS += $(libbsd_CFLAGS) $(libevent_CFLAGS) $(zlib_CFLAGS) \
68                $(libuuid_CFLAGS)