portable: add FreeBSD support
[got-portable.git] / libexec / got-read-commit / Makefile.am
blob99d20ab33888f19cfec22d0602b3ab39a37dbb57
1 bin_PROGRAMS = got-read-commit
2 got_read_commit_SOURCES = got-read-commit.c \
3         $(top_srcdir)/lib/error.c \
4         $(top_srcdir)/lib/inflate.c \
5         $(top_srcdir)/lib/object_parse.c \
6         $(top_srcdir)/lib/path.c \
7         $(top_srcdir)/lib/privsep.c \
8         $(top_srcdir)/lib/sha1.c
10 got_read_commit_DEPENDENCIES = $(top_builddir)/compat/libopenbsd-compat.a
12 AM_CPPFLAGS += -DGOT_VERSION='"@VERSION@"' \
13         -DGOT_VERSION_NUMBER='"@VERSION@"' \
14         -DGOT_LIBEXECDIR="${bindir}" \
15         -I$(top_srcdir) \
16         -I$(top_srcdir)/compat \
17         -I$(top_srcdir)/lib \
18         -I$(top_srcdir)/include \
19         -I.
21 LDADD = -L$(top_builddir)/compat -lopenbsd-compat
22 if HOST_FREEBSD
23 LDADD += -lmd
24 endif