Blame


1 52daa6ad 2023-08-29 thomas bin_PROGRAMS = gotsh
2 52daa6ad 2023-08-29 thomas
3 52daa6ad 2023-08-29 thomas include $(top_builddir)/Makefile.common
4 52daa6ad 2023-08-29 thomas
5 52daa6ad 2023-08-29 thomas AM_CPPFLAGS += -I$(top_builddir)/gotd
6 52daa6ad 2023-08-29 thomas
7 52daa6ad 2023-08-29 thomas gotsh_SOURCES = gotsh.c \
8 52daa6ad 2023-08-29 thomas $(top_srcdir)/gotd/imsg.c \
9 4efc8dcb 2023-08-29 thomas $(top_srcdir)/lib/dial.c \
10 52daa6ad 2023-08-29 thomas $(top_srcdir)/lib/error.c \
11 52daa6ad 2023-08-29 thomas $(top_srcdir)/lib/gitproto.c \
12 4efc8dcb 2023-08-29 thomas $(top_srcdir)/lib/hash.c \
13 4abb076f 2023-08-29 thomas $(top_srcdir)/lib/inflate.c \
14 4efc8dcb 2023-08-29 thomas $(top_srcdir)/lib/object_qid.c \
15 52daa6ad 2023-08-29 thomas $(top_srcdir)/lib/path.c \
16 52daa6ad 2023-08-29 thomas $(top_srcdir)/lib/pkt.c \
17 52daa6ad 2023-08-29 thomas $(top_srcdir)/lib/pollfd.c \
18 52daa6ad 2023-08-29 thomas $(top_srcdir)/lib/reference_parse.c \
19 4efc8dcb 2023-08-29 thomas $(top_srcdir)/lib/serve.c
20 52daa6ad 2023-08-29 thomas
21 52daa6ad 2023-08-29 thomas gotsh_DEPENDENCIES = $(top_builddir)/compat/libopenbsd-compat.a
22 52daa6ad 2023-08-29 thomas EXTRA_DIST = gotsh.1
23 52daa6ad 2023-08-29 thomas
24 52daa6ad 2023-08-29 thomas man1_MANS = gotsh.1
25 52daa6ad 2023-08-29 thomas
26 52daa6ad 2023-08-29 thomas LDADD = -L$(top_builddir)/compat -L$(top_builddir)/gotd -lopenbsd-compat -lm
27 4efc8dcb 2023-08-29 thomas LDADD += $(libutil_LIBS) \
28 4efc8dcb 2023-08-29 thomas $(zlib_LIBS) \
29 4efc8dcb 2023-08-29 thomas $(libbsd_LIBS) \
30 4efc8dcb 2023-08-29 thomas $(libevent_LIBS)
31 52daa6ad 2023-08-29 thomas if HOST_FREEBSD
32 52daa6ad 2023-08-29 thomas LDADD += -lmd
33 52daa6ad 2023-08-29 thomas endif
34 52daa6ad 2023-08-29 thomas
35 4efc8dcb 2023-08-29 thomas AM_CPPFLAGS += $(libutil_CFLAGS) \
36 4efc8dcb 2023-08-29 thomas $(libbsd_CFLAGS) \
37 4efc8dcb 2023-08-29 thomas $(zlib_CFLAGS) \
38 4efc8dcb 2023-08-29 thomas $(libevent_CFLAGS)
39 4efc8dcb 2023-08-29 thomas
40 52daa6ad 2023-08-29 thomas # Disable for now (per upstream)...
41 52daa6ad 2023-08-29 thomas #
42 52daa6ad 2023-08-29 thomas #install-exec-hook:
43 52daa6ad 2023-08-29 thomas # ln -sf $(prefix)/bin/gotsh $(prefix)/bin/git-receive-pack
44 52daa6ad 2023-08-29 thomas # ln -sf $(prefix)/bin/gotsh $(prefix)/bin/git-upload-pack