libexec: honour libeexec path for helpers
[got-portable.git] / libexec / got-fetch-pack / Makefile.am
blob6f7ce0f513e24d00d5139cc4bc89bd07ad2038be
1 libexec_PROGRAMS = got-fetch-pack
2 got_fetch_pack_SOURCES = \
3         got-fetch-pack.c \
4         $(top_srcdir)/lib/error.c \
5         $(top_srcdir)/lib/inflate.c \
6         $(top_srcdir)/lib/object_parse.c \
7         $(top_srcdir)/lib/path.c \
8         $(top_srcdir)/lib/privsep.c \
9         $(top_srcdir)/lib/sha1.c \
10         $(top_srcdir)/lib/pkt.c \
11         $(top_srcdir)/lib/gitproto.c
13 got_fetch_pack_DEPENDENCIES = $(top_builddir)/compat/libopenbsd-compat.a
15 AM_CPPFLAGS += -DGOT_VERSION='"@VERSION@"' \
16         -DGOT_VERSION_NUMBER='"@VERSION@"' \
17         -DGOT_LIBEXECDIR="$(libexecdir)" \
18         -I$(top_srcdir) \
19         -I$(top_srcdir)/compat \
20         -I$(top_srcdir)/lib \
21         -I$(top_srcdir)/include \
22         -I.
24 LDADD = -L$(top_builddir)/compat -lopenbsd-compat
25 if HOST_FREEBSD
26 LDADD += -lmd
27 endif