Blame


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